diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2010-05-18 08:57:35 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-18 08:57:35 -0500 |
commit | 66566142a06fc6af039ed854d6b3c44194c46948 (patch) | |
tree | 0eb3aadd1e9f7d6474c1aed5a13046af73e339cd /libraries/libglademm/libglademm.SlackBuild | |
parent | 444bbb921d559712a69496900babac0d3e4d04f3 (diff) | |
download | slackbuilds-66566142a06fc6af039ed854d6b3c44194c46948.tar.gz |
libraries/libglademm: Misc. script cleanups.
Diffstat (limited to 'libraries/libglademm/libglademm.SlackBuild')
-rwxr-xr-x[-rw-r--r--] | libraries/libglademm/libglademm.SlackBuild | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/libraries/libglademm/libglademm.SlackBuild b/libraries/libglademm/libglademm.SlackBuild index d0ed88a4db..18da16bb7c 100644..100755 --- a/libraries/libglademm/libglademm.SlackBuild +++ b/libraries/libglademm/libglademm.SlackBuild @@ -22,15 +22,24 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -APP=libglademm +PRGNAM=libglademm VERSION=2.6.7 -ARCH=${ARCH:-i486} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) export ARCH=i486 ;; + arm*) export ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) export ARCH=$( uname -m ) ;; + esac +fi + CWD=$(pwd) TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$APP +PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then @@ -42,16 +51,19 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" fi set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT -rm -rf $TMP/$APP-$VERSION +rm -rf $TMP/$PRGNAM-$VERSION cd $TMP -tar xvf $CWD/$APP-$VERSION.tar.bz2 -cd $APP-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION chown -R root:root . chmod -R u+w,go+r-w,a-s . @@ -75,23 +87,11 @@ make install DESTDIR=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -if [ -d $PKG/usr/man ]; then - ( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $(find . -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done - ) -fi - -if [ -d $PKG/usr/info ]; then - gzip -9 $PKG/usr/info/*.info - rm -f $PKG/usr/info/dir -fi - -mkdir -p $PKG/usr/doc/$APP-$VERSION +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS ChangeLog COPYING INSTALL NEWS README TODO \ - $PKG/usr/doc/$APP-$VERSION -cat $CWD/$APP.SlackBuild > $PKG/usr/doc/$APP-$VERSION/$APP.SlackBuild -find $PKG/usr/doc/$APP-$VERSION -type f -exec chmod 644 {} \; + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 644 {} \; # We don't need all the reference docs - they're in the source rm -rf $PKG/usr/share/doc @@ -99,4 +99,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$APP-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |