summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Scheirer2019-01-30 18:20:44 -0500
committerMatthew Scheirer2019-01-30 18:20:44 -0500
commit7dd9112b16e3ecd0bda354e2e119c2e4445746b9 (patch)
treec878d572d4d64c08472f9d68d3f7ebfa8fcacf9e
downloadaur-7dd9112b16e3ecd0bda354e2e119c2e4445746b9.tar.gz
boo
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD28
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..87b03fefc01
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+# Generated by mksrcinfo v8
+# Wed Jan 30 23:20:34 UTC 2019
+pkgbase = pakextract
+ pkgdesc = A small tool to extract pak files
+ pkgver = r14.55d4ca2
+ pkgrel = 1
+ url = https://github.com/yquake2/pakextract
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = git
+ source = git+https://github.com/yquake2/pakextract.git
+ md5sums = SKIP
+
+pkgname = pakextract
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ae0cf200969
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Zanny <lordzanny@gmail.com>
+pkgname=pakextract
+pkgver=r14.55d4ca2
+pkgrel=1
+pkgdesc="A small tool to extract pak files"
+arch=(i686 x86_64)
+url="https://github.com/yquake2/pakextract"
+license=('BSD')
+makedepends=('git')
+source=("git+https://github.com/yquake2/$pkgname.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/$pkgname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/$pkgname"
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+ install -D -m 755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
+ install -D -m 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -D -m 644 README "$pkgdir/usr/share/doc/$pkgname/README"
+}