diff options
Diffstat (limited to 'games/antimicro/antimicro.SlackBuild')
-rw-r--r-- | games/antimicro/antimicro.SlackBuild | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/games/antimicro/antimicro.SlackBuild b/games/antimicro/antimicro.SlackBuild index f86b00b71f..1d0351030a 100644 --- a/games/antimicro/antimicro.SlackBuild +++ b/games/antimicro/antimicro.SlackBuild @@ -9,9 +9,12 @@ # without any warranty. PRGNAM=antimicro -VERSION=${VERSION:-2.20} +VERSION=${VERSION:-2.22} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +QT=${QT:-4} +DOCDIR=${DOCDIR:-/usr/doc} +MANDIR=${MANDIR:-/usr/man} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -46,7 +49,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xf $CWD/$PRGNAM-$VERSION.tar.gz +tar xf $CWD/$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -57,13 +60,11 @@ find -L . \ mkdir -p build cd build - cmake \ +QT_SELECT=`echo $QT` cmake \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DUSE_SDL_2=ON \ -DCMAKE_INSTALL_PREFIX=/usr \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} \ - -DMAN_INSTALL_DIR=/usr/man \ -DCMAKE_BUILD_TYPE=Release .. make make install DESTDIR=$PKG @@ -72,21 +73,21 @@ cd .. find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -mkdir -p $PKG/usr/man -mv $PKG/usr/share/man/* $PKG/usr/man +# Compress man pages +mkdir -p $PKG/$MANDIR +mv $PKG/usr/share/man/man1 $PKG/$MANDIR rm -rf $PKG/usr/share/man -find $PKG/usr/man -type f -exec gzip -9 {} \; -for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +find $PKG/$MANDIR -type f -exec gzip -9 {} \; +for i in $( find $PKG/$MANDIR -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done cat other/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - README.md gpl.txt Resources.txt \ - other/40-uinput.rules \ - $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +mkdir -p $PKG/$DOCDIR/$PRGNAM-$VERSION +cp -a README.md BuildOptions.md gpl.txt Resources.txt \ + ProfileTips.md other/40-uinput.rules \ + $PKG/$DOCDIR/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/$DOCDIR/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |