summaryrefslogtreecommitdiffstats
path: root/games/alephone/alephone.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/alephone/alephone.SlackBuild')
-rw-r--r--games/alephone/alephone.SlackBuild28
1 files changed, 19 insertions, 9 deletions
diff --git a/games/alephone/alephone.SlackBuild b/games/alephone/alephone.SlackBuild
index 24f2781fd1..cc44600a50 100644
--- a/games/alephone/alephone.SlackBuild
+++ b/games/alephone/alephone.SlackBuild
@@ -1,21 +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:-20190331}
+VERSION=${VERSION:-20240119}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -25,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}
@@ -60,8 +72,6 @@ find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
[ "${FFMPEG:-yes}" = "no" ] && EXTRAOPT=--without-ffmpeg
-#patch -Np1 < $CWD/ffmpeg3.patch
-
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS -fpermissive" \
./configure \
@@ -88,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
@@ -98,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