diff options
Diffstat (limited to 'community/bsnes/APKBUILD')
-rw-r--r-- | community/bsnes/APKBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/community/bsnes/APKBUILD b/community/bsnes/APKBUILD new file mode 100644 index 0000000000..d648a9dedc --- /dev/null +++ b/community/bsnes/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: William Pitcock <nenolod@dereferenced.org> +pkgname=bsnes +pkgver=0.91 +_x=${pkgver%.*} +_y=${pkgver#*.} +_pkgver="v${_x}${_y}" +pkgrel=1 +pkgdesc="high accuracy SNES emulator" +url="http://byuu.org/bsnes/" +arch="x86 x86_64" +license="GPL" +depends= +depends_dev="qt-dev openal-soft-dev sdl-dev alsa-lib-dev mesa-dev libao-dev + libxv-dev gtk+-dev" +makedepends="$depends_dev" +install="" +subpackages= +source="http://bsnes.googlecode.com/files/${pkgname}_${_pkgver}-source.tar.xz + no-pulseaudio.patch + define-disassembler_read-relb.patch + " + +_builddir="${srcdir}/${pkgname}_${_pkgver}-source/bsnes" +prepare() { + local i + cd "$_builddir/.." + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done + # remove sudo from makefiles + # don't install stuff in the buildbot user's homedir + find -name 'Makefile' | xargs sed -i -e 's/sudo //' -e '/~\/\.config/d' +} + +build() { + cd "$_builddir" + make compiler=gcc prefix=/usr profile=performance || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" prefix=/usr profile=performance install || return 1 +} + +md5sums="ba53212c56990e83d7770393c4e2d173 bsnes_v091-source.tar.xz +037fb1b2949957daf1942ff3abc4deed no-pulseaudio.patch +957204062ed4634bd83345aa597666c4 define-disassembler_read-relb.patch" |