aboutsummaryrefslogtreecommitdiffstats
path: root/community/croc/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/croc/APKBUILD')
-rw-r--r--community/croc/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community/croc/APKBUILD b/community/croc/APKBUILD
new file mode 100644
index 0000000000..b12fd9dea1
--- /dev/null
+++ b/community/croc/APKBUILD
@@ -0,0 +1,34 @@
+# Contributor: André Klitzing <aklitzing@@gmail.com>
+# Maintainer: André Klitzing <aklitzing@gmail.com>
+pkgname=croc
+pkgver=9.1.4
+pkgrel=1
+pkgdesc="Easily and securely send things from one computer to another"
+url="https://github.com/schollz/croc"
+license="MIT"
+arch="all"
+makedepends="go"
+source="https://github.com/schollz/croc/releases/download/v$pkgver/croc_${pkgver}_src.tar.gz"
+
+# secfixes:
+# 9.1.0-r0:
+# - CVE-2021-31603
+
+build() {
+ export CGO_LDFLAGS="$LDFLAGS"
+ export GOFLAGS="$GOFLAGS -trimpath -mod=vendor"
+ go mod vendor
+ go build
+}
+
+check() {
+ go test ./...
+}
+
+package() {
+ install -Dm755 -t "$pkgdir"/usr/bin croc
+}
+
+sha512sums="
+667cb636a8fea54997a734f46f2002b179361f54cc5b16f67dcc469645f85a46bfb4b587d720c599654358ea1e6a2ec4a46829f4a6e5c74fc9a574a24d316ce1 croc_9.1.4_src.tar.gz
+"