aboutsummaryrefslogtreecommitdiff
path: root/games/mgba/mgba.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/mgba/mgba.SlackBuild')
-rw-r--r--games/mgba/mgba.SlackBuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/games/mgba/mgba.SlackBuild b/games/mgba/mgba.SlackBuild
index 05177e06bfc4c..ec7d815f92e35 100644
--- a/games/mgba/mgba.SlackBuild
+++ b/games/mgba/mgba.SlackBuild
@@ -23,8 +23,9 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=mgba
+LIBNAM=${PRGNAM}_libretro
VERSION=${VERSION:-0.6.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -81,13 +82,18 @@ cd build
-DCMAKE_INSTALL_BINDIR=games \
-DCMAKE_INSTALL_DOCDIR=doc/$PRGNAM-$VERSION \
-DCMAKE_INSTALL_LIBDIR:PATH=lib$LIBDIRSUFFIX \
+ -DLIBRETRO_LIBDIR=/usr/lib$LIBDIRSUFFIX/libretro \
-DMANDIR=man \
-DBUILD_QT=${QT} \
+ -DBUILD_LIBRETRO=ON \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG
cd ..
+install -Dm0644 $CWD/$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