aboutsummaryrefslogtreecommitdiff
path: root/games/pcsx-rearmed/pcsx-rearmed.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/pcsx-rearmed/pcsx-rearmed.SlackBuild')
-rw-r--r--games/pcsx-rearmed/pcsx-rearmed.SlackBuild16
1 files changed, 10 insertions, 6 deletions
diff --git a/games/pcsx-rearmed/pcsx-rearmed.SlackBuild b/games/pcsx-rearmed/pcsx-rearmed.SlackBuild
index 03146feebdeb..d3d996d2ad4e 100644
--- a/games/pcsx-rearmed/pcsx-rearmed.SlackBuild
+++ b/games/pcsx-rearmed/pcsx-rearmed.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=pcsx-rearmed
LIBNAM=pcsx_rearmed_libretro
-VERSION=${VERSION:-2016.07.30_2629ef2}
+VERSION=${VERSION:-2017.01.29_731139f}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -41,6 +41,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+# requires patching the Makefile to properly use
+# the default CFLAGS and CXXFLAGS are probably fine
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
@@ -55,6 +57,8 @@ else
LIBDIRSUFFIX=""
fi
+DEBUG=${DEBUG:-0}
+
set -e
rm -rf $PKG
@@ -70,15 +74,15 @@ 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 {} \;
-CFLAGS="$SLKCFLAGS" \
-./configure
-make -f Makefile.libretro
+make -f Makefile.libretro DEBUG=$DEBUG
install -Dm0644 $LIBNAM.so $PKG/usr/lib${LIBDIRSUFFIX}/libretro/$LIBNAM.so
install -Dm0644 $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
+if [ "$DEBUG" = "0" ]; then
+ 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
+fi
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS ChangeLog* NEWS README.md readme.txt $PKG/usr/doc/$PRGNAM-$VERSION