diff options
author | Dugan Chen <thedoogster [at] gmail [dot] com> | 2018-03-29 15:32:05 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2018-03-31 07:41:39 +0700 |
commit | 0468360611bad751b5f296bb406c56486b66681c (patch) | |
tree | c26e3e05380146d61e8cd6d1f633f8b82448fbb1 /games/mgba/mgba.SlackBuild | |
parent | 0ba35a07e17fc048351d388e7c006cf3edf31c9c (diff) |
games/mgba: Build libretro.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/mgba/mgba.SlackBuild')
-rw-r--r-- | games/mgba/mgba.SlackBuild | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/games/mgba/mgba.SlackBuild b/games/mgba/mgba.SlackBuild index 05177e06bfc4..ec7d815f92e3 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 |