aboutsummaryrefslogtreecommitdiffstats
path: root/community/croc/APKBUILD
blob: 33b97f4872226e09b74964dfa353ff9f92a96367 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Contributor: André Klitzing <aklitzing@@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=croc
pkgver=9.3.0
pkgrel=0
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
"