desmume-git/PKGBUILD

65 lines
1.3 KiB
Bash
Raw Permalink Normal View History

2017-01-11 06:52:18 -08:00
_pkgname=desmume
pkgname=${_pkgname}-git
pkgdesc='Nintendo DS emulator'
url='http://desmume.org/'
arch=('i686' 'x86_64')
license=('GPL')
2019-07-22 06:54:37 -07:00
_relver=0.9.11
pkgver=${_relver}.r800.e29e825d
pkgrel=2
2019-07-22 06:57:22 -07:00
depends=('agg'
'gtkglext'
2019-07-22 06:48:49 -07:00
'lua51'
2017-01-11 06:52:18 -08:00
'libgl'
'openal'
'sdl'
2019-07-22 06:48:49 -07:00
'soundtouch')
2017-01-11 06:52:18 -08:00
makedepends=('autoconf'
'automake'
'pkg-config'
'git'
'lua')
provides=('desmume')
replaces=('desmume-sourceforge'
'desmume-svn'
'desmume-jit-svn')
conflicts=("${provides[@]}" "${replaces[@]}")
source=('git+https://github.com/TASVideos/desmume.git')
sha512sums=('SKIP')
_builddir="${_pkgname}/src/frontend/posix"
pkgver() {
2019-07-22 06:48:49 -07:00
cd "${srcdir}/${_pkgname}"
2019-07-22 06:54:37 -07:00
echo ${_relver}.r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
2017-01-11 06:52:18 -08:00
}
prepare(){
2019-07-22 06:48:49 -07:00
cd "${srcdir}/${_pkgname}/${_builddir}"
# lua5.1 package is named lua51 on Arch
# we could probably just make it compile against the current lua
sed -i 's/lua5.1/lua51/' configure.ac
}
2017-01-11 06:52:18 -08:00
build() {
2019-07-22 06:48:49 -07:00
cd "${srcdir}/${_pkgname}/${_builddir}"
2019-07-22 04:29:41 -07:00
2019-07-22 06:48:49 -07:00
./autogen.sh
2017-01-11 06:52:18 -08:00
2019-07-22 06:48:49 -07:00
# Hud causes segfault in gtk version. Wifi doesn't really work.
./configure \
--prefix=/usr \
--enable-osmesa \
--enable-glx \
--enable-hud \
2019-07-22 07:08:21 -07:00
--enable-openal
2017-01-11 06:52:18 -08:00
2019-07-22 06:48:49 -07:00
make
2017-01-11 06:52:18 -08:00
}
package() {
2019-07-22 06:48:49 -07:00
cd "${srcdir}/${_pkgname}/${_builddir}"
2017-01-11 06:52:18 -08:00
2019-07-22 06:48:49 -07:00
make DESTDIR="${pkgdir}" install
2017-01-11 06:52:18 -08:00
}