[arch-commits] Commit in (4 files)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Wed Jan 23 13:21:09 UTC 2019


    Date: Wednesday, January 23, 2019 @ 13:21:07
  Author: bpiotrowski
Revision: 427233

newpkg: cni-plugins 0.7.4-1

Added:
  cni-plugins/
  cni-plugins/repos/
  cni-plugins/trunk/
  cni-plugins/trunk/PKGBUILD

----------+
 PKGBUILD |   27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

Added: cni-plugins/trunk/PKGBUILD
===================================================================
--- cni-plugins/trunk/PKGBUILD	                        (rev 0)
+++ cni-plugins/trunk/PKGBUILD	2019-01-23 13:21:07 UTC (rev 427233)
@@ -0,0 +1,27 @@
+# Maintainer: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+
+pkgname=cni-plugins
+pkgver=0.7.4
+pkgrel=1
+pkgdesc='Some standard networking plugins, maintained by the CNI team'
+arch=(x86_64)
+url="https://github.com/containernetworking/plugins"
+license=(Apache)
+depends=(glibc)
+makedepends=(go-pie)
+source=($pkgname-$pkgver.tar.gz::$url/archive/v${pkgver}.tar.gz)
+sha512sums=('2ffe18353b525d90679eca4950e96afcaadd7c387956ef5baaf4ce97c0550315fda63403161ab8f23df086955dc2a47da612fb8d0cdd30ccfe12649393e2242c')
+
+build() {
+  cd plugins-$pkgver
+  ./build.sh
+}
+
+package() {
+  cd plugins-$pkgver/bin
+  for bin in *; do
+    install -Dm755 $bin "$pkgdir/usr/lib/cni/$bin"
+  done
+
+  install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list