diff options
Diffstat (limited to 'games/mednaffe/mednaffe.SlackBuild')
-rw-r--r-- | games/mednaffe/mednaffe.SlackBuild | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/games/mednaffe/mednaffe.SlackBuild b/games/mednaffe/mednaffe.SlackBuild index 21f1dfe683..b0063819fb 100644 --- a/games/mednaffe/mednaffe.SlackBuild +++ b/games/mednaffe/mednaffe.SlackBuild @@ -6,8 +6,11 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20210222 bkw: update for v0.9.1. Upstream dropped support for GTK+2, +# so got rid of GTKVER environment variable. + PRGNAM=mednaffe -VERSION=${VERSION:-0.8.8} +VERSION=${VERSION:-0.9.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -50,19 +53,10 @@ chown -R root:root . find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ -if [ "${GTK3:-no}" = "yes" ]; then - GTKOPT="--enable-gtk3" - GTKVER=3 -else - GTKOPT="--disable-gtk3" - GTKVER=2 -fi - -# --docdir is ignored, have to use nonstandard docsdir in make install. CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ - $GTKOPT \ + --docdir="/usr/doc/$PRGNAM-$VERSION" \ --bindir=/usr/games \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ @@ -72,13 +66,13 @@ CXXFLAGS="$SLKCFLAGS" \ --build=$ARCH-slackware-linux make -make install-strip DESTDIR=$PKG docsdir="/usr/doc/$PRGNAM-$VERSION" +make install-strip DESTDIR=$PKG # docs already installed, just add this: cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install -sed "s,@GTKVER@,$GTKVER," $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG |