aboutsummaryrefslogtreecommitdiffstats
path: root/testing/advancemame/APKBUILD
blob: 8e533898e3a610c0bc594dde0109933a1d30603a (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Maintainer: Taner Tas <taner76@gmail.com>
pkgname=advancemame
pkgver=3.8
pkgrel=1
pkgdesc="A port of the MAME emulator for Arcade Monitors and TVs but also for LCDs and PC monitors"
url="http://www.advancemame.it"
arch="all !armhf" # fails with clang 5 https://github.com/alpinelinux/aports/pull/6042#issuecomment-455065598
license="GPL"
makedepends="clang-dev sdl2-dev alsa-lib-dev freetype-dev zlib-dev expat-dev
	slang-dev linux-headers"
subpackages="$pkgname-doc $pkgname-data::noarch $pkgname-mess $pkgname-menu"
source="https://github.com/amadvance/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz
	fix-ppc64le-float128.patch"
options="!check"

prepare() {
	default_prepare
}

build() {
	cd "$builddir"

export CC=clang
export CXX=clang++
export LD="g++ -fuse-ld=gold"

	./configure \
		--build=$CBUILD \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-fb \
		--enable-sdl2
	make
}

package() {
	cd "$builddir"
	make bindir="${pkgdir}/usr/bin/" \
	datadir="${pkgdir}/usr/share/" \
	mandir="${pkgdir}/usr/share/man/" \
	pkgdocdir="${pkgdir}/usr/share/doc/${pkgname}/" \
	install
}

data() {
	pkgdesc="Distrubition files for advancemame"
	depends="$pkgname"
	mkdir -p "$subpkgdir"/usr/share/advance
	mv "$pkgdir"/usr/share/advance/* "$subpkgdir"/usr/share/advance/
}

mess() {
	pkgdesc="Advancemame port of MESS."
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/advmess "$subpkgdir"/usr/bin/

}

menu() {
	pkgdesc="An emulator frontend with sound and animated previews of your games."
	mkdir -p "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/advmenu "$subpkgdir"/usr/bin/

}
sha512sums="82a2366add559cdb1bcb681e7e45c5a383ab6a6364881a2d63f8239c2fcb6a0e6f7e17e58929e85ee1f55516e8a0df8d492214574127567958af22145f5c6f59  advancemame-3.8.tar.gz
d42a9b3c65c2d96be5287c7541eb1e911562b3f2aaf07c55c1849725592857716ce496405e3da2243edcbd4b7307226306533ddf66ef2e081b4c492412930d1b  fix-ppc64le-float128.patch"