summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authormutantmonkey2017-01-09 20:48:19 -0800
committermutantmonkey2017-01-09 20:48:19 -0800
commit39120b29f4e97f1a07b97ff4226694410ad82a8d (patch)
tree68d0a0fa1b015ca70c1d2915f103931641da0b48 /PKGBUILD
downloadaur-39120b29f4e97f1a07b97ff4226694410ad82a8d.tar.gz
Initial upload: seccomp-compile 5.6eb7f9d-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..663cae7a2f5
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: mutantmonkey <aur@mutantmonkey.in>
+pkgname=seccomp-compile
+pkgver=5.6eb7f9d
+pkgrel=1
+pkgdesc="Tiny utility to compile seccomp rules in gosecco format and spit them out on stdout"
+url="https://github.com/mutantmonkey/seccomp-compile"
+arch=('i686' 'x86_64')
+license=('WTFPL')
+makedepends=('git' 'go')
+source=("git+https://github.com/mutantmonkey/seccomp-compile.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $srcdir/$pkgname
+ echo $(git rev-list --count master).$(git rev-parse --short master)
+}
+
+build() {
+ cd "$srcdir/$pkgname"
+ GOPATH="$srcdir" go get -v -d
+ GOPATH="$srcdir" go build
+}
+
+package() {
+ cd "$srcdir/$pkgname"
+ install -Dm0755 seccomp-compile "${pkgdir}/usr/bin/seccomp-compile"
+}
+
+# vim:set ts=2 sw=2 et: