diff options
Diffstat (limited to 'games/mrboom/mrboom.SlackBuild')
-rw-r--r-- | games/mrboom/mrboom.SlackBuild | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/games/mrboom/mrboom.SlackBuild b/games/mrboom/mrboom.SlackBuild index 2fcea6c00d..682b6e04f6 100644 --- a/games/mrboom/mrboom.SlackBuild +++ b/games/mrboom/mrboom.SlackBuild @@ -23,11 +23,12 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=mrboom -VERSION=${VERSION:-4.4} +VERSION=${VERSION:-4.5} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} SRCNAM=mrboom-libretro +LIBNAM=mrboom_libretro if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -71,21 +72,29 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -make mrboom LIBSDL2=1 +if pkg-config --exists sdl2; then + make mrboom LIBSDL2=1 -mkdir -p $PKG/usr/games $PKG/usr/man/man6 $PKG/usr/share/applications $PKG/usr/share/pixmaps + mkdir -p $PKG/usr/games $PKG/usr/man/man6 $PKG/usr/share/applications $PKG/usr/share/pixmaps -make install PREFIX=/usr BINDIR=games DESTDIR=$PKG + make install PREFIX=/usr BINDIR=games DESTDIR=$PKG -install -m 0644 Assets/$PRGNAM.desktop $PKG/usr/share/applications -install -m 0644 $CWD/mrboom.svg $PKG/usr/share/pixmaps + install -m 0644 Assets/$PRGNAM.desktop $PKG/usr/share/applications + install -m 0644 $CWD/mrboom.svg $PKG/usr/share/pixmaps + + 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 +fi + +make clean +make + +install -D -m 0644 $LIBNAM.so $PKG/usr/lib${LIBDIRSUFFIX}/libretro/$LIBNAM.so +install -D -m 0644 $CWD/$LIBNAM.info $PKG/usr/lib${LIBDIRSUFFIX}/libretro/info/$LIBNAM.info 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 -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 - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ LICENSE README.md \ |