[arch-commits] Commit in nebula/trunk (PKGBUILD)

Robin Broda coderobe at archlinux.org
Thu Apr 9 00:51:15 UTC 2020


    Date: Thursday, April 9, 2020 @ 00:51:14
  Author: coderobe
Revision: 612866

upgpkg: nebula 1.2.0-0: 1.2.0

Modified:
  nebula/trunk/PKGBUILD

----------+
 PKGBUILD |   30 ++++++++++++------------------
 1 file changed, 12 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-09 00:50:21 UTC (rev 612865)
+++ PKGBUILD	2020-04-09 00:51:14 UTC (rev 612866)
@@ -1,7 +1,7 @@
 # Maintainer: Robin Broda <coderobe @ archlinux.org>
 pkgname=nebula
-pkgver=1.1.0
-pkgrel=2
+pkgver=1.2.0
+pkgrel=0
 pkgdesc='A scalable overlay networking tool with a focus on performance, simplicity and security'
 arch=('x86_64')
 url='https://github.com/slackhq/nebula'
@@ -9,25 +9,17 @@
 depends=()
 makedepends=('go-pie')
 source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
-sha256sums=('ff08ce10c202a047149397b172e2effaac7f213676e99bb01293b751e73a33fd')
+sha256sums=('1d00594d74e147406f5809380860f538ceed5c19c3f390dd1d8e364f99b303b6')
 
 build() {
   cd "${pkgname}-${pkgver}"
 
-  go build \
+  for bin in nebula{,-cert,-service}
+  do go build \
     -trimpath \
     -ldflags "-extldflags ${LDFLAGS} -X main.Build=${pkgver}" \
-    -o ./nebula ./cmd/nebula
-
-  go build \
-    -trimpath \
-    -ldflags "-extldflags ${LDFLAGS} -X main.Build=${pkgver}" \
-    -o ./nebula-cert ./cmd/nebula-cert
-
-  go build \
-    -trimpath \
-    -ldflags "-extldflags ${LDFLAGS} -X main.Build=${pkgver}" \
-    -o ./nebula-service ./cmd/nebula-service
+    -o "${bin}" "./cmd/${bin}"
+  done
 }
 
 check() {
@@ -40,7 +32,9 @@
   cd "${pkgname}-${pkgver}"
 
   install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-  install -Dm755 nebula "${pkgdir}/usr/bin/nebula"
-  install -Dm755 nebula-cert "${pkgdir}/usr/bin/nebula-cert"
-  install -Dm755 nebula-service "${pkgdir}/usr/bin/nebula-service"
+  install -Dm644 dist/arch/nebula.service "${pkgdir}/usr/lib/systemd/system/nebula.service"
+
+  for bin in nebula{,-cert,-service}
+  do install -Dm755 "${bin}" "${pkgdir}/usr/bin/${bin}"
+  done
 }



More information about the arch-commits mailing list