diff options
Diffstat (limited to 'games/dolphin-emu/dolphin-emu.SlackBuild')
-rw-r--r-- | games/dolphin-emu/dolphin-emu.SlackBuild | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/games/dolphin-emu/dolphin-emu.SlackBuild b/games/dolphin-emu/dolphin-emu.SlackBuild index 7260fb45cec4..32777e63abe0 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:-3.5} +VERSION=${VERSION:-4.0} 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/-*/}-$VERSION +rm -rf $PRGNAM unzip $CWD/${PRGNAM/-*/}-$VERSION-src.zip -cd ${PRGNAM/-*/}-$VERSION +cd $PRGNAM chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -69,11 +69,17 @@ find . \ \( -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" \ -DCMAKE_INSTALL_PREFIX:PATH=/usr \ -Dbindir=/usr/games \ + -DLIB_INSTALL_DIR=lib${LIBDIRSUFFIX} \ + -DINSTALL_LIB_DIR=/usr/lib${LIBDIRSUFFIX} \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_BUILD_TYPE=Release .. @@ -85,14 +91,15 @@ cd - 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 -mkdir -p $PKG/usr/share/applications -install -m 0644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications for i in 16 32 48 64 128; do convert Installer/Dolphin.ico -resize ${i}x${i}! $PRGNAM-${i}.png - install -D -m 0644 $PRGNAM-${i}-8.png \ + install -D -m 0644 $PRGNAM-${i}-3.png \ $PKG/usr/share/icons/hicolor/${i}x${i}/apps/$PRGNAM.png done +# Remove unnecessary files/directories. +rm -f $PKG/usr/share/pixmaps $PKG/usr/lib${LIBDIRSUFFIX}/libpolarssl.a + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a license.txt Readme.txt $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |