pkgname=wxwabbitemu
pkgver=r
pkgver() {
	cd "$srcdir/$pkgname";
	local ver=Unversioned directory
	printf "r%s" ""
}
pkgrel=1
url='https://github.com/alberthdev/wxwabbitemu'
pkgdesc="a TI-8x emulator based on Wabbitemu"
arch=('any')
source=("git+https://github.com/alberthdev/wxwabbitemu.git" "$pkgname.patch" "LICENSE")
depends=('wxgtk')
makedepends=(
    'git' 'devkitARM'
)
license=('custom')
prepare() {
	cd "$srcdir/$pkgname";
	git checkout -f;
    git clean -f;
	git apply ../$pkgname.patch
}
build() {
	cd "$srcdir/$pkgname/build";
	make 
}
package() {
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
	cd "$srcdir/$pkgname/build";
	make DESTDIR="${pkgdir}" install
}
md5sums=('SKIP' 'SKIP' 'SKIP')