pkgname=wxwabbitemu pkgver=r pkgver() { cd "$srcdir/$pkgname"; printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } pkgrel=2 url='https://github.com/alberthdev/wxwabbitemu' pkgdesc="a TI-8x emulator based on Wabbitemu" arch=('any') source=("git+https://github.com/alberthdev/wxwabbitemu.git" "LICENSE") md5sums=('SKIP' 'SKIP') depends=('wxgtk') makedepends=('git' 'cmake') license=('custom') prepare() { mkdir -p "$srcdir/build"; } build() { cd "$srcdir/build"; cmake "$srcdir/$pkgname" -DCMAKE_INSTALL_PREFIX:PATH=$pkgdir; make; } package() { install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" cd "$srcdir/build"; make install mkdir -p "$pkgdir/usr/bin" mv "$pkgdir/bin/wxWabbitemu" "$pkgdir/usr/bin" rmdir "$pkgdir/bin" }