[arch-commits] Commit in croc/repos/community-x86_64 (PKGBUILD PKGBUILD croc.service)

Maxim Baz maximbaz at archlinux.org
Thu Apr 9 17:40:00 UTC 2020


    Date: Thursday, April 9, 2020 @ 17:40:00
  Author: maximbaz
Revision: 613046

archrelease: copy trunk to community-x86_64

Added:
  croc/repos/community-x86_64/PKGBUILD
    (from rev 613045, croc/trunk/PKGBUILD)
Deleted:
  croc/repos/community-x86_64/PKGBUILD
  croc/repos/community-x86_64/croc.service

--------------+
 PKGBUILD     |   66 ++++++++++++++++++++++++++++-----------------------------
 croc.service |   12 ----------
 2 files changed, 33 insertions(+), 45 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-04-09 17:39:56 UTC (rev 613045)
+++ PKGBUILD	2020-04-09 17:40:00 UTC (rev 613046)
@@ -1,33 +0,0 @@
-# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
-# Contributor: Mikuro Kagamine <mikurok at forgecrushing.com>
-
-pkgname=croc
-pkgver=8.0.5
-pkgrel=1
-pkgdesc='Easily and securely send things from one computer to another.'
-arch=('x86_64')
-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')
-
-build() {
-    cd "${pkgname}-${pkgver}"
-    go build -mod vendor -ldflags "-extldflags ${LDFLAGS}" -trimpath -o "${pkgname}"
-}
-
-check() {
-    cd "${pkgname}-${pkgver}"
-    go test -mod vendor ./...
-}
-
-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/share/licenses/${pkgname}/" LICENSE
-}

Copied: croc/repos/community-x86_64/PKGBUILD (from rev 613045, croc/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-04-09 17:40:00 UTC (rev 613046)
@@ -0,0 +1,33 @@
+# Maintainer: Maxim Baz <$pkgname at maximbaz dot com>
+# Contributor: Mikuro Kagamine <mikurok at forgecrushing.com>
+
+pkgname=croc
+pkgver=8.0.7
+pkgrel=1
+pkgdesc='Easily and securely send things from one computer to another.'
+arch=('x86_64')
+url="https://github.com/schollz/${pkgname}"
+license=('MIT')
+depends=('glibc')
+makedepends=('go')
+source=("${url}/releases/download/v${pkgver}/${pkgname}_${pkgver}_src.tar.gz")
+sha256sums=('f18728e84e050094d6f2613adeb7a7f0204b20fc24795a658ce6ad0c2cb224d3')
+
+build() {
+    cd "${pkgname}-${pkgver}"
+    export CGO_LDFLAGS="$LDFLAGS"
+    export GOFLAGS="-buildmode=pie -trimpath -mod=vendor -modcacherw"
+    go build
+}
+
+check() {
+    cd "${pkgname}-${pkgver}"
+    go test ./...
+}
+
+package() {
+    cd "${pkgname}-${pkgver}"
+    install -Dm755 -t "${pkgdir}/usr/bin/" "${pkgname}"
+    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 17:39:56 UTC (rev 613045)
+++ croc.service	2020-04-09 17:40:00 UTC (rev 613046)
@@ -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