summaryrefslogtreecommitdiffstats
path: root/games/higan/higan.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/higan/higan.SlackBuild')
-rw-r--r--games/higan/higan.SlackBuild24
1 files changed, 15 insertions, 9 deletions
diff --git a/games/higan/higan.SlackBuild b/games/higan/higan.SlackBuild
index e4f90e9d0e..2692f2526a 100644
--- a/games/higan/higan.SlackBuild
+++ b/games/higan/higan.SlackBuild
@@ -27,14 +27,14 @@
PRGNAM=higan
VERSION=${VERSION:-093}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) export ARCH=i486 ;;
- arm*) export ARCH=arm ;;
- *) export ARCH=$( uname -m ) ;;
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
esac
fi
@@ -68,10 +68,10 @@ cd ${PRGNAM}_v${VERSION}-source
find . -type d -exec chmod -R 0755 {} \;
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 {} \;
+ \( -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 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# Apply the patch to allow proper install on Slackware as root
patch -p1 -i $CWD/higan-v093.patch
@@ -111,9 +111,15 @@ mkdir $PKG/usr/share/higan/Video\ Shaders
cp -r shaders/*.shader $PKG/usr/share/higan/Video\ Shaders
chmod -R 777 $PKG/usr/share/higan/Video\ Shaders
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+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
+# Fix broken link.
+cd $PKG/usr/lib${LIBDIRSUFFIX}
+ rm libananke.so
+ ln -s libananke.so.1 libananke.so
+cd -
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild