aboutsummaryrefslogtreecommitdiffstats
path: root/testing/rclone/APKBUILD
blob: c259a8df98d51f871a33f1bed9e222570324a77d (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
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: Chloe Kudryavtsev <toast@toastin.space>
pkgname=rclone
pkgver=1.48.0
pkgrel=0
pkgdesc="Rsync for cloud storage"
url="https://rclone.org/"
arch="all"
license="MIT"
makedepends="go"
options="net"
source="$pkgname-$pkgver.tar.gz::https://github.com/ncw/$pkgname/archive/v$pkgver.tar.gz"
subpackages="$pkgname-doc"

export GOPATH="$srcdir"
export CGO_ENABLED=0

build() {
	GO111MODULE=on go build -o bin/"$pkgname"
}

check() {
	GO111MODULE=on go test ./...
}

package() {
	install -Dm755 "$builddir"/bin/"$pkgname" \
		"$pkgdir"/usr/bin/"$pkgname"

	install -Dm644 "$builddir"/"$pkgname".1 \
		"$pkgdir"/usr/share/man/man1/"$pkgname".1
}

cleanup_srcdir() {
	go clean -modcache
	default_cleanup_srcdir
}

sha512sums="038a72cc386c427646d2a4765664e42679fd647a878d44148a0019c8164ec60f1a2788ae0d228b166c3245fc1df6f0045c681e51e8bf2b06ef74215984dd97b5  rclone-1.48.0.tar.gz"