diff options
author | Chloe Kudryavtsev <toast@toastin.space> | 2019-06-23 20:45:29 -0400 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-06-24 21:27:38 -0300 |
commit | 0d5fbe25a57c9390258ea0365c6e211ea97b521e (patch) | |
tree | 681fef680e00ad4c2ef9d32580ad3885824ec4be /testing/rclone/APKBUILD | |
parent | 7bb3b8a0b0be5060feecb9e71e18f3fbd1b0dce6 (diff) | |
download | aports-0d5fbe25a57c9390258ea0365c6e211ea97b521e.tar.bz2 aports-0d5fbe25a57c9390258ea0365c6e211ea97b521e.tar.xz |
testing/rclone: new aport
Diffstat (limited to 'testing/rclone/APKBUILD')
-rw-r--r-- | testing/rclone/APKBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/rclone/APKBUILD b/testing/rclone/APKBUILD new file mode 100644 index 0000000000..c259a8df98 --- /dev/null +++ b/testing/rclone/APKBUILD @@ -0,0 +1,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" |