### this file is sourced not run
PKGBUILD=1
PKGARCH=x86_64

# source: james

# release tarball
#PKGVER=
#TARBALL=
#MD5SUM=
#SRC_URL=
#BUNDLE=

# git-master tarball
PKGVER=0.9.2020.08
MD5SUM=b629cbbdbe7b97ab76df564c6a89f60c
hash=316103d2ec13e326f7161c656068c40aee219249
hash7=${hash#???????}; hash7=${hash%$hash7}
TARBALL=desmume-$PKGVER-$hash7.tar.gz
SRC_URL=https://github.com/TASVideos/desmume/archive/$hash.tar.gz


SLACKREQ='libSDL gtk2 libsoundtouch libagg openal libpcap' # and opengl - Mesa or otherwise

SLACKDESC="desmume: desmume $PKGVER (NDS Emulator)
desmume: 
desmume: DeSmuME is software that allows you to emulate a Nintendo DS system. 
desmume: Think of it as a Swiss-Army knife for Nintendo DS emulation, giving 
desmume: you access to many powerful tools for testing DS features, from 
desmume: viewing ROM properties to managing Action Replay cheats.
desmume: 
desmume: https://github.com/TASVideos/desmume
desmume: http://desmume.org
desmume: 
desmume: 
"

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	cd /tmp/desmume*/desmume/src/frontend/posix &&
	./autogen.sh &&
	./configure $CONFFLAGS \
		--enable-wifi --enable-glx --enable-hud --enable-openal &&
	make $MAKEFLAGS &&
	make install &&
	pkg_build_slackdesc
}
