pkgname=mupen64plus pkgver=2.5 pkgrel=2 pkgdesc='Nintendo64™ Emulator.' arch=('x86_64') url='http://www.mupen64plus.org/' license=('GPL3') depends=('freetype2' 'mesa' 'libpng' 'libsamplerate' 'sdl_image' 'sdl_mixer' 'glu') optdepends=('m64py: for graphical interface') categories=('system') screenshot='http://mupen64plus.googlecode.com/svn/wiki/Screenshot-01-PaperMario.png' source=("https://github.com/mupen64plus/mupen64plus-core/releases/download/$pkgver/mupen64plus-bundle-src-$pkgver.tar.gz") sha256sums=('9c75b9d826f2d24666175f723a97369b3a6ee159b307f7cc876bbb4facdbba66') build() { cd $srcdir/$pkgname-bundle-src-$pkgver sh m64p_build.sh } package() { cd $srcdir/$pkgname-bundle-src-$pkgver # Set LDCONFIG since we are using fakeroot and scripts. Run root commands by checking the uid. ./m64p_install.sh DESTDIR=$pkgdir PREFIX=/usr MANDIR=/usr/share/man LDCONFIG=true }