aboutsummaryrefslogtreecommitdiffstats
path: root/testing/antibody/APKBUILD
blob: 492a22c031a3808c99ad2ba4eecb16f4ab75c870 (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
# Contributor: Aleks Bunin <alpinelinux@compuix.com>
# Maintainer: Aleks Bunin <alpinelinux@compuix.com>
pkgname=antibody
pkgver=6.1.1
pkgrel=5
pkgdesc="The fastest zsh shell plugin manager."
url="https://github.com/getantibody/antibody"
license="MIT"
arch="all"
depends="git zsh"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/getantibody/antibody/archive/v$pkgver.tar.gz"
options="!check" # uses removed github api

export GOFLAGS="$GOFLAGS -modcacherw"

build() {
	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
}

sha512sums="
0a436227d195b1e68be03d62d0f7fab0f10c4434df10e047468809a6dcf330623c54ddf4e52c459d7b816a3be977e62c6aba58408881f9a45583456e37614b04  antibody-6.1.1.tar.gz
"