diff options
author | Cezary M. Kruk <c.kruk@bigfoot.com> | 2010-05-13 00:23:30 +0200 |
---|---|---|
committer | David Somero <xgizzmo@slackbuilds.org> | 2010-05-13 00:23:30 +0200 |
commit | 041a831ac9fe683c19275f3d16fa255c1ef8aa42 (patch) | |
tree | 75549965b9428e1c2e457010f787b752a078dc11 /desktop/wmmixer/wmmixer.SlackBuild | |
parent | 84b70324c4fa5d222f4b8049bf443572a7306ee2 (diff) |
desktop/wmmixer: Updated for version 1.5
Diffstat (limited to 'desktop/wmmixer/wmmixer.SlackBuild')
-rw-r--r-- | desktop/wmmixer/wmmixer.SlackBuild | 40 |
1 files changed, 15 insertions, 25 deletions
diff --git a/desktop/wmmixer/wmmixer.SlackBuild b/desktop/wmmixer/wmmixer.SlackBuild index 28f2e6cf79af9..df93edcc870a6 100644 --- a/desktop/wmmixer/wmmixer.SlackBuild +++ b/desktop/wmmixer/wmmixer.SlackBuild @@ -18,10 +18,13 @@ OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" fi set -e @@ -30,7 +33,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar -xvf $CWD/$PRGNAM-$VERSION.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find . \ @@ -39,38 +42,25 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -CFLAGS="$SLKCFLAGS" make +make \ + CXXFLAGS="$SLKCFLAGS" \ + prefix=/usr \ + mandir=/usr/man + +make install \ + prefix=/usr \ + mandir=/usr/man \ + DESTDIR=$PKG -mkdir $PKG/usr -mkdir -p $PKG/usr/bin -mkdir -p $PKG/usr/man/man1 - -# Executable and manual are copied to the correct location -cp -a wmmixer $PKG/usr/bin -cp -a wmmixer.1 $PKG/usr/man/man1 - -( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \ - xargs strip --strip-unneeded 2> /dev/null || true - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \ - xargs strip --strip-unneeded 2> /dev/null -) - -( 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 -) +gzip -9c $PKG/usr/man/man1/wmmixer.1 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a CHANGES COPYING INSTALL README home.wmmixer \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -cp -a home.wmmixer $PKG/usr/doc/$PRGNAM-$VERSION - mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz - +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |