summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Andersen2017-01-17 19:01:04 -0800
committerJohn Andersen2017-01-17 19:05:24 -0800
commitc43fc53ad67c321bbceeacde1b090715fac98d50 (patch)
treea640325ca12b834952731d9378a5d4455ff362cc
downloadaur-c43fc53ad67c321bbceeacde1b090715fac98d50.tar.gz
Building for Clear Containers version 2.1.0-rc.3
Signed-off-by: John Andersen <johnandersenpdx@gmail.com>
-rw-r--r--.SRCINFO20
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD47
3 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6dfca5296da
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,20 @@
+pkgbase = cc-oci-runtime
+ pkgdesc = Intel Clear Containers runtime
+ pkgver = 2.1.0
+ pkgrel = 1
+ url = https://clearlinux.org
+ arch = x86_64
+ license = GPLv2
+ checkdepends = valgrind
+ makedepends = go
+ makedepends = glib2
+ makedepends = libmnl
+ makedepends = json-glib
+ makedepends = check
+ makedepends = bash-bats
+ makedepends = gcc
+ source = https://github.com/01org/cc-oci-runtime/archive/2.1.0-rc.3.tar.gz
+ sha1sums = a0d3ec7afbdee60623eb2b1edc82f3615c6b767b
+
+pkgname = cc-oci-runtime
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..810ab250922
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*.tar.gz
+src/
+pkg/
+*.tar.xz
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..cc942fc8204
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: John Andersen <johnandersenpdx@gmail.com>
+
+pkgname=cc-oci-runtime
+pkgver=2.1.0
+__postfix_ver="-rc.3"
+pkgrel=1
+pkgdesc="Intel Clear Containers runtime"
+arch=(x86_64)
+url="https://clearlinux.org"
+license=('GPLv2')
+makedepends=('go'
+ 'glib2'
+ 'libmnl'
+ 'json-glib'
+ 'check'
+ 'bash-bats'
+ 'gcc')
+checkdepends=('valgrind')
+source=(https://github.com/01org/cc-oci-runtime/archive/${pkgver}${__postfix_ver}.tar.gz)
+sha1sums=('a0d3ec7afbdee60623eb2b1edc82f3615c6b767b')
+
+build() {
+ export GOPATH=$PWD
+ mkdir -p "$GOPATH/src/github.com/01org/"
+ rm -f "$GOPATH/src/github.com/01org/cc-oci-runtime"
+ ln -s $PWD/$pkgname-${pkgver}${__postfix_ver} "$GOPATH/src/github.com/01org/cc-oci-runtime"
+ cd "$GOPATH/src/github.com/01org/cc-oci-runtime"
+ for i in $(ls "vendor/github.com/"); do
+ rm -f "$GOPATH/src/github.com/$i"
+ ln -s "$GOPATH/src/github.com/01org/cc-oci-runtime/vendor/github.com/$i" \
+ "$GOPATH/src/github.com/$i"
+ done
+ ./autogen.sh
+ ./configure --prefix=/usr --sysconfdir=/etc
+ make
+}
+
+check() {
+ cd "$GOPATH/src/github.com/01org/cc-oci-runtime"
+ # make check
+}
+
+package() {
+ cd "$GOPATH/src/github.com/01org/cc-oci-runtime"
+ make DESTDIR="$pkgdir/" install
+}