diff options
author | Tobias Martin | 2016-11-24 16:36:59 +0100 |
---|---|---|
committer | Tobias Martin | 2016-11-24 16:36:59 +0100 |
commit | e84d6b666f410b1419894c33db37011f0fef7b9a (patch) | |
tree | afc15b6cec9dcad66da06fa2b666ac1c36aba27b | |
download | aur-e84d6b666f410b1419894c33db37011f0fef7b9a.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | .gitignore | 12 | ||||
-rw-r--r-- | PKGBUILD | 34 |
3 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3a8f55cfbbb0 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = cni-git + pkgdesc = Specification and libraries for writing plugins to configure network interfaces in Linux containers + pkgver = r428.de002ff + pkgrel = 1 + url = https://github.com/containernetworking/cni + arch = i686 + arch = x86_64 + license = apache + makedepends = git + makedepends = go + source = cni-git::git+https://github.com/containernetworking/cni.git#branch=master + sha512sums = SKIP + +pkgname = cni-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..2fcf4d06ee77 --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +*.tar +*.tar.* +*.jar +*.exe +*.msi +*.zip +*.tgz +*.log +*.log.* +*.sig + +cni-git/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7f1403484dff --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Tobias Martin <tm-x at gmx dot net> + +_pkgname=cni +pkgname=${_pkgname}-git +pkgver=r428.de002ff +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=('git' 'go') +source=("${pkgname}::git+https://github.com/containernetworking/${_pkgname}.git#branch=master") +sha512sums=('SKIP') + +pkgver() { + cd "${srcdir}/${pkgname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${srcdir}/${pkgname}" + ./build +} + +package() { + cd "${srcdir}/${pkgname}" + 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: |