summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorPkmX2016-07-29 01:49:17 +0800
committerPkmX2016-07-29 01:50:03 +0800
commitc1fee7dd20cb0c2de81b389060dacf1791b8ad43 (patch)
tree51b5ab87f557cd2d7c90baed59dfc4434dbd906e /PKGBUILD
downloadaur-c1fee7dd20cb0c2de81b389060dacf1791b8ad43.tar.gz
Add acc-git to AUR
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..a05f032959e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: PkmX <pkmx.tw@gmail.com>
+pkgname=acc-git
+_pkgname=acc
+pkgver=1.54.r131.gafbec00
+pkgrel=1
+pkgdesc="Action Code Script (ACS) compiler from ZDoom"
+arch=('i686' 'x86_64')
+url="https://github.com/rheit/acc"
+license=('unknown')
+depends=()
+makedepends=('git')
+provides=('acc')
+conflicts=('acc')
+source=("$_pkgname::git+https://github.com/rheit/acc")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$_pkgname"
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+prepare() {
+ cd "$_pkgname"
+ sed -e 's!/usr/local/share/acc!/usr/share/acc!' -i acc.c
+}
+
+build() {
+ cd "$_pkgname"
+ make
+}
+
+package() {
+ cd "$_pkgname"
+ install -Dm755 acc "$pkgdir/usr/bin/acc"
+ install -d "$pkgdir/usr/share/acc"
+ install -Dm644 *.acs "$pkgdir/usr/share/acc/"
+}
+
+# vim:set ts=2 sw=2 et: