diff options
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 28f2e6cf79..df93edcc87 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} |