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.SlackBuild16
1 files changed, 11 insertions, 5 deletions
diff --git a/games/alephone/alephone.SlackBuild b/games/alephone/alephone.SlackBuild
index c6dbd0a476..a59807eb1b 100644
--- a/games/alephone/alephone.SlackBuild
+++ b/games/alephone/alephone.SlackBuild
@@ -7,7 +7,7 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
PRGNAM=alephone
-VERSION=${VERSION:-20120514}
+VERSION=${VERSION:-20140104}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -55,9 +55,16 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Patch came from ArchLinux AUR, this is the two ffmpeg patches catted
+# together.
+patch -p1 < $CWD/ffmpeg_api.diff
+
+[ "${FFMPEG:-yes}" = "no" ] && EXTRAOPT=--disable-ffmpeg
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS -fpermissive" \
./configure \
+ $EXTRAOPT \
--prefix=/usr \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
@@ -75,13 +82,12 @@ gzip -9 $PKG/usr/man/man?/*.?
# Instead, the game-data packages each get a .desktop.
# However, they all use the same icon, so install it here.
-# Icon taken from the windows alephone.exe
mkdir -p $PKG/usr/share/pixmaps
-cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png
+cat Source_Files/Misc/$PRGNAM.xpm > $PKG/usr/share/pixmaps/$PRGNAM.xpm
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- ChangeLog AUTHORS COPYING README THANKS examples docs/*.html \
+# ChangeLog is 0 bytes in 20140104, ignore it
+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