[arch-commits] Commit in croc/trunk (PKGBUILD croc.service)

Maxim Baz maximbaz at archlinux.org
Thu Apr 9 17:39:56 UTC 2020


    Date: Thursday, April 9, 2020 @ 17:39:56
  Author: maximbaz
Revision: 613045

upgpkg: croc 8.0.7-1

Modified:
  croc/trunk/PKGBUILD
Deleted:
  croc/trunk/croc.service

--------------+
 PKGBUILD     |   18 +++++++++---------
 croc.service |   12 ------------
 2 files changed, 9 insertions(+), 21 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-09 15:49:36 UTC (rev 613044)
+++ PKGBUILD	2020-04-09 17:39:56 UTC (rev 613045)
@@ -2,7 +2,7 @@
 # Contributor: Mikuro Kagamine <mikurok at forgecrushing.com>
 
 pkgname=croc
-pkgver=8.0.5
+pkgver=8.0.7
 pkgrel=1
 pkgdesc='Easily and securely send things from one computer to another.'
 arch=('x86_64')
@@ -9,25 +9,25 @@
 url="https://github.com/schollz/${pkgname}"
 license=('MIT')
 depends=('glibc')
-makedepends=('go-pie' 'git')
-source=("${url}/releases/download/v${pkgver}/${pkgname}_${pkgver}_src.tar.gz"
-        "${pkgname}.service")
-sha256sums=('c2a55bfa2fe4680489b4c334f8861ff0929f0930b22c038d2d23b5b79b9c2831'
-            'cf074568f16c7b86870a89a0a2d8e488e3837223cca071a911085d814d6f2194')
+makedepends=('go')
+source=("${url}/releases/download/v${pkgver}/${pkgname}_${pkgver}_src.tar.gz")
+sha256sums=('f18728e84e050094d6f2613adeb7a7f0204b20fc24795a658ce6ad0c2cb224d3')
 
 build() {
     cd "${pkgname}-${pkgver}"
-    go build -mod vendor -ldflags "-extldflags ${LDFLAGS}" -trimpath -o "${pkgname}"
+    export CGO_LDFLAGS="$LDFLAGS"
+    export GOFLAGS="-buildmode=pie -trimpath -mod=vendor -modcacherw"
+    go build
 }
 
 check() {
     cd "${pkgname}-${pkgver}"
-    go test -mod vendor ./...
+    go test ./...
 }
 
 package() {
     cd "${pkgname}-${pkgver}"
     install -Dm755 -t "${pkgdir}/usr/bin/" "${pkgname}"
-    install -Dm644 -t "${pkgdir}/usr/lib/systemd/system/" "${srcdir}/${pkgname}.service"
+    install -Dm644 -t "${pkgdir}/usr/lib/systemd/system/" "${pkgname}.service"
     install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}/" LICENSE
 }

Deleted: croc.service
===================================================================
--- croc.service	2020-04-09 15:49:36 UTC (rev 613044)
+++ croc.service	2020-04-09 17:39:56 UTC (rev 613045)
@@ -1,12 +0,0 @@
-[Unit]
-Description=Croc relay
-After=network.target
-
-[Service]
-Type=simple
-User=nobody
-CapabilityBoundingSet=CAP_NET_BIND_SERVICE
-ExecStart=/usr/bin/croc relay
-
-[Install]
-WantedBy=multi-user.target



More information about the arch-commits mailing list