# Contributor: André Klitzing # Maintainer: André Klitzing pkgname=croc pkgver=9.3.0 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=" 732a1f1252e2958ea7c9e8273c6c2930da01a4ea71a2ac1056711371235caf6b8200ffafcb73086903ee80fe83948d452e783f49a1c25fdee1089830c148337f croc_9.3.0_src.tar.gz "