aboutsummaryrefslogtreecommitdiffstats
path: root/community/croc/APKBUILD
blob: 59af0aa07d2d36a2004628d55ee9ffa9da1c6820 (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.2.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="
2f11bd2b911a19855ebca7ffb1a14ea18efac7f703eca7303bd828d03a0dc7731ee26720eb9f7ce9313b0c541a445b4e219a934bb44e5968e043dcc696bc1b3c  croc_9.2.0_src.tar.gz
"