summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD29
2 files changed, 46 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..055972165d8
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by mksrcinfo v8
+# Tue Jan 10 04:48:20 UTC 2017
+pkgbase = seccomp-compile
+ pkgdesc = Tiny utility to compile seccomp rules in gosecco format and spit them out on stdout
+ pkgver = 5.6eb7f9d
+ pkgrel = 1
+ url = https://github.com/mutantmonkey/seccomp-compile
+ arch = i686
+ arch = x86_64
+ license = WTFPL
+ makedepends = git
+ makedepends = go
+ source = git+https://github.com/mutantmonkey/seccomp-compile.git
+ sha256sums = SKIP
+
+pkgname = seccomp-compile
+
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: