aboutsummaryrefslogtreecommitdiffstats
path: root/testing/fceux/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/fceux/APKBUILD')
-rw-r--r--testing/fceux/APKBUILD21
1 files changed, 14 insertions, 7 deletions
diff --git a/testing/fceux/APKBUILD b/testing/fceux/APKBUILD
index e5852565cf..974a050e78 100644
--- a/testing/fceux/APKBUILD
+++ b/testing/fceux/APKBUILD
@@ -1,27 +1,34 @@
# Contributor: Danct12 <danct12@disroot.org>
# Maintainer: Danct12 <danct12@disroot.org>
pkgname=fceux
-pkgver=2.5.0
+pkgver=2.6.4
pkgrel=0
pkgdesc="Fast and ultra-compatible NES/Famicom emulator"
-url="http://www.fceux.com"
+url="https://www.fceux.com"
arch="all"
license="GPL-2.0-only"
-makedepends="sdl2-dev gd-dev qt5-qtbase-dev mesa-dev glu-dev minizip-dev bash cmake"
+makedepends="bash cmake gd-dev glu-dev lua5.1-dev mesa-dev minizip-dev
+ qt5-qtbase-dev sdl2-dev"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/project/fceultra/Source%20Code/$pkgver%20src/fceux-$pkgver.tar.gz"
options="!check" # no testsuite
build() {
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+
cmake -B build \
- -DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_INSTALL_LIBDIR=lib
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=MinSizeRel \
+ $CMAKE_CROSSOPTS
cmake --build build
}
package() {
- DESTDIR="$pkgdir" cmake --build build --target install
+ DESTDIR="$pkgdir" cmake --install build
install -d "$pkgdir/usr/share/doc/$pkgname"
cp -r documentation/* "$pkgdir/usr/share/doc/$pkgname/"
install -Dm644 changelog.txt "$pkgdir/usr/share/doc/$pkgname/"
@@ -29,5 +36,5 @@ package() {
}
sha512sums="
-bbff55b6f3efda8918b7dab21582d93f8c2a6396bf64a93e33f2f5f6cd345f95bcde7b958f0a663967e47e83110733c4a732dbf538afb7dbecb3147bc3090f01 fceux-2.5.0.tar.gz
+9fd8b908b652b5b8f120d15bdd43fa1e3475a300e0f1ec7d44965c95ec4bf58f7f9fe9511ea975effaf37f2cc4900e74021b06111dcafecc27affdd9d4e12f2e fceux-2.6.4.tar.gz
"