aboutsummaryrefslogtreecommitdiffstats
path: root/testing/fceux/APKBUILD
blob: df538e93eb4d034f79a0eebd5e006f1db9453e02 (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.4.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="
3f53db1091e28c91bff90a2d6c77bd3c022a7c20a29b07e6cb88e9ae4795ce7f9e68d15ac0f90721472f8c262907a2564e0be7adc8df2eb3ef252215717f30a0  fceux-2.4.0.tar.gz
"