diff options
Diffstat (limited to 'games/alephone/alephone.SlackBuild')
-rw-r--r-- | games/alephone/alephone.SlackBuild | 38 |
1 files changed, 23 insertions, 15 deletions
diff --git a/games/alephone/alephone.SlackBuild b/games/alephone/alephone.SlackBuild index bcbd1d4ef8..cc44600a50 100644 --- a/games/alephone/alephone.SlackBuild +++ b/games/alephone/alephone.SlackBuild @@ -1,20 +1,29 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for alephone -# Written by B. Watson (yalhcru@gmail.com) +# Written by B. Watson (urchlay@slackware.uk) # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20240320 bkw: update for 20240119 +# 20230716 bkw: update for 20230529 +# 20230108 bkw: update for 20221126 +# 20211010 bkw: update for 20210408 +# 20201026 bkw: update for 20201026 +# 20191209 bkw: update for 20190331 # 20150915 bkw: # - update for 20150620 release # - ffmpeg patches no longer needed # - move binary to /usr/games +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=alephone -VERSION=${VERSION:-20150620} -BUILD=${BUILD:-2} +VERSION=${VERSION:-20240119} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -24,7 +33,11 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -54,16 +67,11 @@ rm -rf $SRCNAM-$VERSION tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2 cd $SRCNAM-$VERSION chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ [ "${FFMPEG:-yes}" = "no" ] && EXTRAOPT=--without-ffmpeg -patch -Np1 < $CWD/ffmpeg3.patch - CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS -fpermissive" \ ./configure \ @@ -90,8 +98,8 @@ mkdir -p $PKG/usr/share/pixmaps cat Source_Files/Misc/$PRGNAM.xpm > $PKG/usr/share/pixmaps/$PRGNAM.xpm mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -# ChangeLog is 0 bytes in 20140104, ignore it -cp -a AUTHORS COPYING README THANKS examples docs/*.html \ +# ChangeLog was 0 bytes in 20140104, gone in 20201026. +cp -a AUTHORS* COPYING* README* THANKS* examples docs/*.html \ $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -100,4 +108,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |