aboutsummaryrefslogtreecommitdiffstats
path: root/testing/croc/APKBUILD
diff options
context:
space:
mode:
authorAndré Klitzing <aklitzing@gmail.com>2020-05-18 12:08:08 +0200
committerRasmus Thomsen <oss@cogitri.dev>2020-05-18 10:40:29 +0000
commit896542734451cdff015d09d3f85c00ae1fe78566 (patch)
tree2ce61711c7a8f76258b4ed70d09d5abd7a5f6caf /testing/croc/APKBUILD
parentb7c4ce63baec14ffee8be378550d40f4229574a0 (diff)
downloadaports-896542734451cdff015d09d3f85c00ae1fe78566.tar.gz
aports-896542734451cdff015d09d3f85c00ae1fe78566.tar.bz2
aports-896542734451cdff015d09d3f85c00ae1fe78566.tar.xz
testing/croc: new aport
Diffstat (limited to 'testing/croc/APKBUILD')
-rw-r--r--testing/croc/APKBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/croc/APKBUILD b/testing/croc/APKBUILD
new file mode 100644
index 0000000000..d51a9829cb
--- /dev/null
+++ b/testing/croc/APKBUILD
@@ -0,0 +1,27 @@
+# Contributor: André Klitzing <aklitzing@@gmail.com>
+# Maintainer: André Klitzing <aklitzing@gmail.com>
+pkgname=croc
+pkgver=8.0.11
+pkgrel=0
+pkgdesc="Easily and securely send things from one computer to another"
+url="https://github.com/schollz/croc"
+arch="all !s390x" # s390x fails: https://github.com/schollz/croc/issues/218
+license="MIT"
+makedepends="go"
+source="https://github.com/schollz/croc/releases/download/v$pkgver/croc_${pkgver}_src.tar.gz"
+
+build() {
+ export CGO_LDFLAGS="$LDFLAGS"
+ export GOFLAGS="$GOFLAGS -trimpath -mod=vendor"
+ go build
+}
+
+check() {
+ go test ./...
+}
+
+package() {
+ install -Dm755 -t "$pkgdir/usr/bin/" "$pkgname"
+}
+
+sha512sums="13781abb411ed24b6297da664b414601b837d08551d63169d9fe490a34e58dfc09d47b84a31ade1b76b0f2078b1980df43a253d8e75920aa0c125dbb6b3f31ca croc_8.0.11_src.tar.gz"