aboutsummaryrefslogtreecommitdiff
path: root/games/dolphin-emu/dolphin-emu.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/dolphin-emu/dolphin-emu.SlackBuild')
-rw-r--r--games/dolphin-emu/dolphin-emu.SlackBuild15
1 files changed, 6 insertions, 9 deletions
diff --git a/games/dolphin-emu/dolphin-emu.SlackBuild b/games/dolphin-emu/dolphin-emu.SlackBuild
index 8adfd02898766..ec37ed1a0d906 100644
--- a/games/dolphin-emu/dolphin-emu.SlackBuild
+++ b/games/dolphin-emu/dolphin-emu.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=dolphin-emu
-VERSION=${VERSION:-4.0}
+VERSION=${VERSION:-4.0.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -59,9 +59,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM
-unzip $CWD/${PRGNAM/-*/}-$VERSION-src.zip
-cd $PRGNAM
+rm -rf ${PRGNAM/-*/}-$VERSION
+tar xvf $CWD/${PRGNAM/-*/}-$VERSION.tar.gz || tar xvf $CWD/$VERSION.tar.gz
+cd ${PRGNAM/-*/}-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
@@ -69,10 +69,6 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Force dolphin-emu to use internal polarssl. Dolphin-emu fails to build
-# when polarssl >= 1.3.x is installed.
-sed -i 's|include(FindPolarSSL)|#&|' CMakeLists.txt
-
mkdir build
cd build
cmake -G "Unix Makefiles" \
@@ -98,7 +94,8 @@ for i in 16 32 48 64 128; do
done
# Remove unnecessary files/directories.
-rm -rf $PKG/usr/share/pixmaps $PKG/usr/lib${LIBDIRSUFFIX}/libpolarssl.a
+rm -rf $PKG/usr/lib${LIBDIRSUFFIX}/libpolarssl.a
+find $PKG -type d -empty -delete
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a license.txt Readme.txt $PKG/usr/doc/$PRGNAM-$VERSION