2017-01-11 06:52:18 -08:00
|
|
|
#! /bin/bash
|
|
|
|
# Maintainer: Markus Kitsinger (SwooshyCueb) <root@swooshalicio.us>
|
|
|
|
|
|
|
|
_pkgname=desmume
|
|
|
|
pkgname=${_pkgname}-git
|
|
|
|
pkgdesc='Nintendo DS emulator'
|
|
|
|
url='http://desmume.org/'
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
license=('GPL')
|
|
|
|
|
|
|
|
# The developers do not seem to make consistent use of tags
|
|
|
|
# I've manually specified the commit where the branch of the latest release (as
|
|
|
|
# of this writing) split from master, and we use this to get the rev number.
|
|
|
|
_last_rtm_ver=0.9.11
|
|
|
|
_last_rtm_commit=ccbf85ed42e4350af415d56b1465e83614c85ef8
|
|
|
|
pkgver="${_last_rtm_ver}.r583.07a68db"
|
2017-01-11 15:36:02 -08:00
|
|
|
pkgrel=2
|
2017-01-11 06:52:18 -08:00
|
|
|
|
2017-01-11 15:36:02 -08:00
|
|
|
depends=('gtkglext'
|
2017-01-11 06:52:18 -08:00
|
|
|
'libglade'
|
|
|
|
'libgl'
|
|
|
|
'openal'
|
|
|
|
'sdl'
|
|
|
|
'soundtouch'
|
|
|
|
'lua51')
|
|
|
|
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() {
|
|
|
|
cd "${srcdir}/${_pkgname}"
|
|
|
|
|
|
|
|
local revnum="$(git rev-list --count ${_last_rtm_commit}..HEAD)"
|
|
|
|
local shorthash="$(git rev-parse --short HEAD)"
|
|
|
|
|
|
|
|
printf "%s.r%s.%s" "${_last_rtm_ver}" "${revnum}" "${shorthash}"
|
|
|
|
}
|
|
|
|
|
|
|
|
prepare(){
|
|
|
|
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
|
2019-07-22 04:29:03 -07:00
|
|
|
}
|
2017-01-11 06:52:18 -08:00
|
|
|
|
2019-07-22 04:29:03 -07:00
|
|
|
build() {
|
2019-07-22 04:29:41 -07:00
|
|
|
cd "${srcdir}/${_pkgname}/${_builddir}"
|
|
|
|
|
2017-01-11 06:52:18 -08:00
|
|
|
./autogen.sh
|
|
|
|
|
2017-01-11 15:36:02 -08:00
|
|
|
# Hud causes segfault in gtk version. Wifi doesn't really work.
|
2017-01-11 06:52:18 -08:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--enable-osmesa \
|
|
|
|
--enable-glx \
|
|
|
|
--enable-openal \
|
2017-01-11 15:36:02 -08:00
|
|
|
--enable-glade
|
2017-01-11 06:52:18 -08:00
|
|
|
|
2017-01-11 15:36:02 -08:00
|
|
|
make
|
2017-01-11 06:52:18 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${_pkgname}/${_builddir}"
|
|
|
|
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
}
|