summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorspider-mario2017-06-14 20:41:04 +0200
committerspider-mario2017-06-14 20:42:52 +0200
commit2264f1feaacb2a1b36abfc6bcd02a960fb515c74 (patch)
tree2ad34ca6aa39d48df19e9a975b846225934a0f35 /PKGBUILD
downloadaur-2264f1feaacb2a1b36abfc6bcd02a960fb515c74.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD59
1 files changed, 59 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..95b2239ad75
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,59 @@
+# Maintainer: spider-mario <spidermario@free.fr>
+# Contributor: Maxime Gauduin <alucryd@archlinux.org>
+# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
+
+pkgname=vbam-git
+pkgver=2.303.g997b9757
+pkgrel=1
+pkgdesc='Nintendo Game Boy Advance emulator'
+arch=('i686' 'x86_64')
+url='https://github.com/visualboyadvance-m/visualboyadvance-m'
+license=('GPL2')
+depends=('wxgtk3' 'sfml' 'ffmpeg')
+makedepends=('gettext')
+makedepends_i686=('nasm')
+conflicts=('vbam-gtk' 'vbam-wx')
+provides=('vbam-wx')
+options=('!emptydirs')
+source=('vbam::git+https://github.com/visualboyadvance-m/visualboyadvance-m.git'
+ 'gtk3.patch')
+sha256sums=('SKIP'
+ '2287d90b3b4c7481251f95fcbc900e1c368c2d7b5e28f5549645c66770a60bb7')
+
+pkgver() {
+ cd vbam
+ git describe | perl -pe 'tr/-/./; s/^\D+//i'
+}
+
+prepare() {
+ cd vbam
+
+ rm -rf build
+ mkdir build
+
+ git apply -3 ../gtk3.patch
+}
+
+build() {
+ cd vbam/build
+
+ _cmakeargs=(-DCMAKE_INSTALL_PREFIX='/usr'
+ -DCMAKE_SKIP_RPATH='TRUE')
+
+ if [[ "$CARCH" == i686 ]]; then
+ _cmakeargs+=(-DENABLE_ASM_CORE='TRUE'
+ -DENABLE_ASM_SCALERS='TRUE')
+ fi
+
+ cmake .. "${_cmakeargs[@]}"
+ make
+}
+
+package() {
+ cd vbam/build
+
+ make DESTDIR="$pkgdir"/ install
+ install -m 755 visualboyadvance-m "${pkgdir}"/usr/bin/
+}
+
+# vim: ts=2 sw=2 et: