aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mednafen/APKBUILD
blob: 4879362b8f1986ea09d633cd41ea666c0551dacd (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
# Contributor: August Klein <amatcoder@gmail.com>
# Maintainer: August Klein <amatcoder@gmail.com>
pkgname=mednafen
pkgver=0.9.38.7
pkgrel=0
pkgdesc="A command-line multi-system emulator"
url="http://mednafen.sourceforge.net"
arch="all"
license="GPL2"
depends=""
makedepends="alsa-lib-dev libsndfile-dev mesa-dev glu-dev paxmark sdl-dev zlib-dev"
subpackages="$pkgname-lang"
source="http://mednafen.fobby.net/releases/files/$pkgname-$pkgver.tar.bz2
	01-fix_textrels.patch
	02-fix_x86_inline_asm.patch
	03-sdl_by_default.patch
	gcc6-fix.patch
	"

builddir="$srcdir"/$pkgname

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr || return 1
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1

	rm -rf "$pkgdir"/usr/lib/charset.alias
	paxmark -m "$pkgdir"/usr/bin/mednafen
}

md5sums="e49c6b4c0c8278bc01c63cba9b54498c  mednafen-0.9.38.7.tar.bz2
554494930528cbb4881c85e043e17827  01-fix_textrels.patch
7c5210fdc196e79b9f73637ec306b5ad  02-fix_x86_inline_asm.patch
fe551992f13f1cfe44fde9a96f5fd0b2  03-sdl_by_default.patch
765829339c1509d8b2fd978857152bbc  gcc6-fix.patch"
sha256sums="1bb3beef883a325c35d1a1ce14959c307a4c321f2ea29d4ddb216c6dd03aded8  mednafen-0.9.38.7.tar.bz2
a9990e59a91f330dc2cc3b069545629b1907dba92bd0760a8e8b89be1a73eed2  01-fix_textrels.patch
d8524b5afa22ba09f03578c1bc49ea7763bf22492ea6d8670b83bdd96af09cae  02-fix_x86_inline_asm.patch
3fd7154caaf00c6f58b912a24d396503d817fbb2cfdea1550f7dd9dea69d4664  03-sdl_by_default.patch
d420e803035eef81453fd16e2a0eedd61c7e7d1f99d3f733280f5fb0435146ed  gcc6-fix.patch"
sha512sums="759c83928ef7a9e856dc7f546542ab1e7cbe944d0184a7693ce3b1466220233eb40c2b215100920920754eb5a93587bd8e2d8150e00ec9c93da1d518107e0d76  mednafen-0.9.38.7.tar.bz2
797a4e0d5a768a9052b226d9395d9d03d3c59a6faf67958e09169d1e603fc59f468a68e958d60661b03ff4faf0b0275d66559f517efdfd523f07eb03618cb620  01-fix_textrels.patch
424a6727117f4e0ad022b2fe2726a85c43a8a529770e74dada7e7810a6542741c0a2f7ad767e0d0471c5201c26242ab5380b7c82d25f74aa533c4508ded71811  02-fix_x86_inline_asm.patch
856d16f4c044c3787abdd3d65c6b72b6e42c88d7195f097cb6767fde6e0027d756cacc1fd54279a90a6a1bd164cecb8baaf1ff66787ca38d64bdd3eb6583738b  03-sdl_by_default.patch
9418e09053b2506401fdab8cbd18132f699cb90723551630ecdbeb0fceda4d4fc630bad659aea5f2d15ebe1268c1a52f14c2dbd68ed7a8d02d2258ee8160c517  gcc6-fix.patch"