[arch-commits] Commit in nebula/repos/community-x86_64 (PKGBUILD PKGBUILD)

Morten Linderud foxboron at archlinux.org
Sun Jul 5 14:38:05 UTC 2020


    Date: Sunday, July 5, 2020 @ 14:38:05
  Author: foxboron
Revision: 657844

archrelease: copy trunk to community-x86_64

Added:
  nebula/repos/community-x86_64/PKGBUILD
    (from rev 657843, nebula/trunk/PKGBUILD)
Deleted:
  nebula/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   85 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 45 insertions(+), 40 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-05 14:37:55 UTC (rev 657843)
+++ PKGBUILD	2020-07-05 14:38:05 UTC (rev 657844)
@@ -1,40 +0,0 @@
-# Maintainer: Robin Broda <coderobe @ archlinux.org>
-pkgname=nebula
-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'
-license=('MIT')
-depends=()
-makedepends=('go-pie')
-source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
-sha256sums=('1d00594d74e147406f5809380860f538ceed5c19c3f390dd1d8e364f99b303b6')
-
-build() {
-  cd "${pkgname}-${pkgver}"
-
-  for bin in nebula{,-cert,-service}
-  do go build \
-    -trimpath \
-    -ldflags "-extldflags ${LDFLAGS} -X main.Build=${pkgver}" \
-    -o "${bin}" "./cmd/${bin}"
-  done
-}
-
-check() {
-  cd "${pkgname}-${pkgver}"
-
-  go test -v ./...
-}
-
-package() {
-  cd "${pkgname}-${pkgver}"
-
-  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-  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
-}

Copied: nebula/repos/community-x86_64/PKGBUILD (from rev 657843, nebula/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-07-05 14:38:05 UTC (rev 657844)
@@ -0,0 +1,45 @@
+# Maintainer: Robin Broda <coderobe @ archlinux.org>
+pkgname=nebula
+pkgver=1.2.0
+pkgrel=1
+pkgdesc='A scalable overlay networking tool with a focus on performance, simplicity and security'
+arch=('x86_64')
+url='https://github.com/slackhq/nebula'
+license=('MIT')
+depends=()
+makedepends=('go')
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
+sha256sums=('1d00594d74e147406f5809380860f538ceed5c19c3f390dd1d8e364f99b303b6')
+
+build() {
+  cd "${pkgname}-${pkgver}"
+
+  export CGO_CPPFLAGS="${CPPFLAGS}"
+  export CGO_CFLAGS="${CFLAGS}"
+  export CGO_CXXFLAGS="${CXXFLAGS}"
+  export CGO_LDFLAGS="${LDFLAGS}"
+  export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
+
+  for bin in nebula{,-cert,-service}
+  do go build \
+    -ldflags "-X main.Build=${pkgver}" \
+    -o "${bin}" "./cmd/${bin}"
+  done
+}
+
+check() {
+  cd "${pkgname}-${pkgver}"
+
+  go test -v ./...
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  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