aboutsummaryrefslogtreecommitdiffstats
path: root/testing/fceux/APKBUILD
blob: e5852565cf30bfe4ac835350b5deca701891fa77 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Contributor: Danct12 <danct12@disroot.org>
# Maintainer: Danct12 <danct12@disroot.org>
pkgname=fceux
pkgver=2.5.0
pkgrel=0
pkgdesc="Fast and ultra-compatible NES/Famicom emulator"
url="http://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"
subpackages="$pkgname-doc"
source="https://downloads.sourceforge.net/project/fceultra/Source%20Code/$pkgver%20src/fceux-$pkgver.tar.gz"
options="!check" # no testsuite

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
	install -d "$pkgdir/usr/share/doc/$pkgname"
	cp -r documentation/* "$pkgdir/usr/share/doc/$pkgname/"
	install -Dm644 changelog.txt "$pkgdir/usr/share/doc/$pkgname/"
	rm -f "$pkgdir/usr/share/$pkgname/"*.dll
}

sha512sums="
bbff55b6f3efda8918b7dab21582d93f8c2a6396bf64a93e33f2f5f6cd345f95bcde7b958f0a663967e47e83110733c4a732dbf538afb7dbecb3147bc3090f01  fceux-2.5.0.tar.gz
"