summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Martin2017-04-25 13:27:17 +0200
committerTobias Martin2017-04-25 13:27:17 +0200
commit2521ca42f005a7bd868958c4d91267b3b2663e06 (patch)
treee08cf9cc987fd573b2b1ce1e751f098b015126d7
downloadaur-2521ca42f005a7bd868958c4d91267b3b2663e06.tar.gz
initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore12
-rw-r--r--PKGBUILD29
3 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..09bc7d5681f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = cni
+ pkgdesc = Specification and libraries for writing plugins to configure network interfaces in Linux containers
+ pkgver = 0.5.2
+ pkgrel = 1
+ url = https://github.com/containernetworking/cni
+ arch = i686
+ arch = x86_64
+ license = Apache
+ makedepends = go
+ depends = glibc
+ source = https://github.com/containernetworking/cni/archive/v0.5.2.tar.gz
+ sha512sums = 0e56a32d01c77197ac9bec3bcbfea39db92d01cec6ffdfefa759b9123d724d42f1fb97f71fb666f6444f8e978a6332eacb36a5323edf850c41149c1714b44024
+
+pkgname = cni
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..6fd5bd5badf
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,12 @@
+*.tar
+*.tar.*
+*.jar
+*.exe
+*.msi
+*.zip
+*.tgz
+*.log
+*.log.*
+*.sig
+
+cni
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8f904ebcd7f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Tobias Martin <tm-x at gmx dot net>
+
+pkgname=cni
+pkgver=0.5.2
+pkgrel=1
+pkgdesc="Specification and libraries for writing plugins to configure network interfaces in Linux containers"
+arch=('i686' 'x86_64')
+url="https://github.com/containernetworking/cni"
+license=('Apache')
+makedepends=('go')
+depends=('glibc')
+source=("https://github.com/containernetworking/${pkgname}/archive/v${pkgver}.tar.gz")
+sha512sums=('0e56a32d01c77197ac9bec3bcbfea39db92d01cec6ffdfefa759b9123d724d42f1fb97f71fb666f6444f8e978a6332eacb36a5323edf850c41149c1714b44024')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ ./build.sh
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ mkdir -p "${pkgdir}/opt/${pkgname}/"
+ cp -dr --no-preserve=ownership bin "${pkgdir}/opt/${pkgname}/"
+
+ mkdir -p ${pkgdir}/usr/share/licenses/${_pkgname}
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et: