diff options
author | juju2143 | 2019-09-19 02:43:23 -0400 |
---|---|---|
committer | juju2143 | 2019-09-19 02:43:23 -0400 |
commit | a586356319b6c266cd44049ae5473a0257269f93 (patch) | |
tree | 7850b16de05be9feb9594f23c4a518aa93f5c2c8 | |
download | aur-a586356319b6c266cd44049ae5473a0257269f93.tar.gz |
Add version from git
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 46 |
2 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..15aec20848bd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = x16-rom-git + pkgdesc = ROM files for The 8-Bit Guy's Commander X16 + pkgver = r30.r18.ge3815b4 + pkgrel = 1 + url = http://commanderx16.com/ + arch = any + groups = commander-x16 + license = unknown + license = GPL3 + makedepends = git + makedepends = cc65 + makedepends = pandoc + provides = x16-rom + conflicts = x16-rom + source = git+https://github.com/commanderx16/x16-rom.git + source = https://raw.githubusercontent.com/commanderx16/x16-emulator/master/github-pandoc.css + source = https://raw.githubusercontent.com/mobluse/chargen-maker/master/chargen.txt + md5sums = SKIP + md5sums = SKIP + md5sums = SKIP + +pkgname = x16-rom-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..38cd57041a6d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Julien Savard <juju@juju2143.ca> +pkgname=x16-rom-git +pkgver=r30.r18.ge3815b4 +pkgrel=1 +pkgdesc="ROM files for The 8-Bit Guy's Commander X16" +arch=('any') +url="http://commanderx16.com/" +license=('unknown' 'GPL3') +groups=('commander-x16') +depends=() +makedepends=('git' 'cc65' 'pandoc') +optdepends=() +provides=('x16-rom') +conflicts=('x16-rom') +replaces=() +options=() +install= +changelog= +source=("git+https://github.com/commanderx16/x16-rom.git" + "https://raw.githubusercontent.com/commanderx16/x16-emulator/master/github-pandoc.css" + "https://raw.githubusercontent.com/mobluse/chargen-maker/master/chargen.txt") +md5sums=('SKIP' + 'SKIP' + 'SKIP') + +pkgver() { + cd "${pkgname%-git}" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "${pkgname%-git}" + make + # Stolen from https://github.com/mobluse/chargen-maker, under GPL3 + sed '/^#/d;/^[[:space:]]*$/d;s/\\/0/g;s/@/1/g;' < ../chargen.txt | perl -ne 'print pack("B8", $_)' > chargen.bin + pandoc --from gfm --to html -c ../github-pandoc.css --standalone --metadata pagetitle="X16 KERNAL/BASIC/DOS ROM" README.md --output KERNAL-BASIC.html +} + +package() { + cd "${pkgname%-git}" + install -Dm644 rom.bin "$pkgdir/usr/share/${pkgname%-git}/rom.bin" + install -Dm644 rom-c64.bin "$pkgdir/usr/share/${pkgname%-git}/rom-c64.bin" + install -Dm644 chargen.bin "$pkgdir/usr/share/${pkgname%-git}/chargen.bin" + install -Dm644 ../github-pandoc.css "$pkgdir/usr/share/doc/${pkgname%-git}/github-pandoc.css" + install -Dm644 KERNAL-BASIC.html "$pkgdir/usr/share/doc/${pkgname%-git}/KERNAL-BASIC.html" +} |