# Maintainer: Salvador PardiƱas pkgname=higan-git pkgver=105_tr1 pkgrel=1 pkgdesc="Multisystem emulator by Byuu" arch=('x86_64' 'i686') url="https://byuu.org" license=('GPL3') groups=() depends=('libpulse' 'gtksourceview2' 'sdl' 'libxv' 'libao' 'openal') makedepends=('git') provides=('higan') conflicts=('higan') replaces=() backup=() options=() source=( 'git+https://gitlab.com/higan/higan.git' 'allow_root.patch' 'getver.patch') noextract=() md5sums=('SKIP' '5aaffc97c4c58e95b3f1db33e8184518' '9fdbe0c87e2e89c0f53b96bf313cd090') prepare() { cd $srcdir/higan patch -Np1 -i "${srcdir}/allow_root.patch" patch -Np1 -i "${srcdir}/getver.patch" chmod +x getver.sh } pkgver() { cd "$srcdir/higan" ./getver.sh } build() { cd "$srcdir/higan" make -C icarus compiler=g++ make -C higan compiler=g++ } package() { cd "$srcdir/higan" mkdir -p "$pkgdir/usr/bin" mkdir -p "$pkgdir/usr/share/applications" make -C icarus prefix="$pkgdir/usr" install make -C higan prefix="$pkgdir/usr" install chmod -R 777 "$pkgdir/usr/share/higan" chmod -R 777 "$pkgdir/usr/share/icarus" }