aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleks Bunin <alpinelinux@compuix.com>2020-06-28 21:25:17 -0400
committerLeo <thinkabit.ukim@gmail.com>2020-06-29 21:18:00 +0000
commit92adacb984ffc89b43ea07321511df70fabd07d6 (patch)
tree17ab353c7d22bbf35a7d7cd20321f94dc108bbb1
parent6a65c161fc5727f34fd06c6f92e06540c26b11b3 (diff)
downloadaports-92adacb984ffc89b43ea07321511df70fabd07d6.tar.gz
aports-92adacb984ffc89b43ea07321511df70fabd07d6.tar.bz2
aports-92adacb984ffc89b43ea07321511df70fabd07d6.tar.xz
testing/antibody: new aport
Closes #10910
-rw-r--r--testing/antibody/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/antibody/APKBUILD b/testing/antibody/APKBUILD
new file mode 100644
index 0000000000..eeac2ff0a8
--- /dev/null
+++ b/testing/antibody/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Aleks Bunin <alpinelinux@compuix.com>
+# Maintainer: Aleks Bunin <alpinelinux@compuix.com>
+pkgname=antibody
+pkgver=6.0.1
+pkgrel=0
+pkgdesc="The fastest zsh shell plugin manager."
+url="https://github.com/getantibody/antibody"
+arch="all"
+license="MIT"
+depends="git zsh"
+makedepends="go"
+source="$pkgname-$pkgver.tar.gz::https://github.com/getantibody/antibody/archive/v$pkgver.tar.gz"
+builddir="$srcdir/go/src/github.com/getantibody/antibody"
+
+prepare() {
+ default_prepare
+ mkdir -p "$srcdir/go/src/github.com/getantibody"
+ mv "$srcdir/$pkgname-$pkgver" "$builddir"
+}
+
+build() {
+ export GOPATH="$srcdir/go"
+ go build -o antibody -ldflags "-X main.version=$pkgver" -trimpath
+}
+
+check() {
+ go test -v -cover ./...
+}
+
+package() {
+ install -sD -m 755 antibody "$pkgdir"/usr/bin/antibody
+}
+
+cleanup_srcdir() {
+ go clean -modcache
+ default_cleanup_srcdir
+}
+
+sha512sums="c370019238afbad550e2d99cb3487c3245f76fa897feb98a627f02cf0ef0bbfe1277d732b032e8ce7d338e3a3a5de39a5cbb2edf39e02363502b9b909098bfe3 antibody-6.0.1.tar.gz"