projects/aports·blob master · refs

41 lines · 1.1 KiB

1# Contributor: Marvin Preuss <[email protected]>
2# Maintainer: DWwanghao <[email protected]>
3maintainer="DWwanghao <[email protected]>"
4pkgname=ali
5pkgver=0.8.0
6# this is used for the help command to print the commit.
7# needs to be changed on every release.
8_rev=200c159
9pkgrel=5
10pkgdesc="Generate HTTP load and plot the results in real-time"
11url="https://github.com/nakabonne/ali"
12arch="all"
13license="MIT"
14options="chmod-clean net" # go
15makedepends="go"
16subpackages="$pkgname-doc"
17source="https://github.com/nakabonne/ali/archive/refs/tags/v$pkgver/ali-$pkgver.tar.gz"
18
19build() {
20 go build \
21 -ldflags "
22 -X \"main.version=$pkgver\" \
23 -X \"main.date=$(date -u "+%Y-%m-%dT%TZ" ${SOURCE_DATE_EPOCH:+-d @$SOURCE_DATE_EPOCH})\" \
24 -X \"main.commit=$_rev\" \
25 "
26}
27
28check() {
29 go test ./...
30}
31
32package() {
33 install -Dvm755 ali -t "$pkgdir"/usr/bin/
34
35 install -Dvm644 README.md -t "$pkgdir"/usr/share/doc/$pkgname/
36 install -Dvm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
37}
38
39sha512sums="
408ad6f4b88ebf032327a5204683ebf1efeff499d3c0888f56e98c913cc383524d41bf1ba3b0517989a8f75f87907c256ce556ebbac19d20e6620a733fa574cfaa ali-0.8.0.tar.gz
41"