aboutsummaryrefslogtreecommitdiffstats
path: root/testing/croc/APKBUILD
blob: d51a9829cb0fbea431ac80b769f8633eba1358d8 (plain)
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
# 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"