# Maintainer: Julien Savard pkgname=x16-emulator pkgver=r34 pkgrel=1 pkgdesc="An emulator for The 8-Bit Guy's Commander X16" arch=('x86_64') url="http://commanderx16.com/" license=('BSD') groups=('commander-x16') depends=('sdl2') makedepends=('pandoc') optdepends=('x16-rom: ROMs for the emulator') provides=() conflicts=() replaces=() options=() install= changelog= source=("$pkgname-$pkgver.tar.gz::https://github.com/commanderx16/$pkgname/archive/$pkgver.tar.gz" "modify-base-path.patch") md5sums=('6ae93108bd81af4944f3f7e8aa8c011f' '5cd0550d2af1b4267c9b9f30eed9691e') prepare() { cd "$pkgname-$pkgver" patch -uN main.c ../modify-base-path.patch } build() { cd "$pkgname-$pkgver" make pandoc --from gfm --to html -c github-pandoc.css --standalone --metadata pagetitle="X16 Emulator" README.md --output README.html } package() { cd "$pkgname-$pkgver" install -Dm755 x16emu "$pkgdir/usr/bin/x16emu" install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" install -Dm644 github-pandoc.css "$pkgdir/usr/share/doc/$pkgname/github-pandoc.css" install -Dm644 README.html "$pkgdir/usr/share/doc/$pkgname/README.html" }