diff options
author | Aleks Bunin <alpinelinux@compuix.com> | 2020-06-28 21:25:17 -0400 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2020-06-29 21:18:00 +0000 |
commit | 92adacb984ffc89b43ea07321511df70fabd07d6 (patch) | |
tree | 17ab353c7d22bbf35a7d7cd20321f94dc108bbb1 /testing/antibody | |
parent | 6a65c161fc5727f34fd06c6f92e06540c26b11b3 (diff) | |
download | alpine_aports-92adacb984ffc89b43ea07321511df70fabd07d6.tar.bz2 alpine_aports-92adacb984ffc89b43ea07321511df70fabd07d6.tar.xz alpine_aports-92adacb984ffc89b43ea07321511df70fabd07d6.zip |
testing/antibody: new aport
Closes #10910
Diffstat (limited to 'testing/antibody')
-rw-r--r-- | testing/antibody/APKBUILD | 39 |
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 @@ | |||
1 | # Contributor: Aleks Bunin <alpinelinux@compuix.com> | ||
2 | # Maintainer: Aleks Bunin <alpinelinux@compuix.com> | ||
3 | pkgname=antibody | ||
4 | pkgver=6.0.1 | ||
5 | pkgrel=0 | ||
6 | pkgdesc="The fastest zsh shell plugin manager." | ||
7 | url="https://github.com/getantibody/antibody" | ||
8 | arch="all" | ||
9 | license="MIT" | ||
10 | depends="git zsh" | ||
11 | makedepends="go" | ||
12 | source="$pkgname-$pkgver.tar.gz::https://github.com/getantibody/antibody/archive/v$pkgver.tar.gz" | ||
13 | builddir="$srcdir/go/src/github.com/getantibody/antibody" | ||
14 | |||
15 | prepare() { | ||
16 | default_prepare | ||
17 | mkdir -p "$srcdir/go/src/github.com/getantibody" | ||
18 | mv "$srcdir/$pkgname-$pkgver" "$builddir" | ||
19 | } | ||
20 | |||
21 | build() { | ||
22 | export GOPATH="$srcdir/go" | ||
23 | go build -o antibody -ldflags "-X main.version=$pkgver" -trimpath | ||
24 | } | ||
25 | |||
26 | check() { | ||
27 | go test -v -cover ./... | ||
28 | } | ||
29 | |||
30 | package() { | ||
31 | install -sD -m 755 antibody "$pkgdir"/usr/bin/antibody | ||
32 | } | ||
33 | |||
34 | cleanup_srcdir() { | ||
35 | go clean -modcache | ||
36 | default_cleanup_srcdir | ||
37 | } | ||
38 | |||
39 | sha512sums="c370019238afbad550e2d99cb3487c3245f76fa897feb98a627f02cf0ef0bbfe1277d732b032e8ce7d338e3a3a5de39a5cbb2edf39e02363502b9b909098bfe3 antibody-6.0.1.tar.gz" | ||