~zethra/stargazer

ref: db6a8cc8f7740ed2ae05dd5f8176684cac2af4a2 stargazer/contrib/pkg/alpine/APKBUILD -rw-r--r-- 1.1 KiB
db6a8cc8Sashanoraa Bump version to 1.0.1 a month ago
                                                                                
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
32
33
34
35
36
37
38
39
# Maintainer: Sashanoraa <sasha@noraa.gay>
pkgname=stargazer-gmi
pkgver=0.6.1
pkgrel=0
pkgdesc="stargazer gemini server"
url="https://sr.ht/~zethra/stargazer/"
arch="all !s390x !riscv64 !ppc64le" # cargo & ring
license="AGPL-3.0-or-later"
makedepends="cargo scdoc"
checkdepends="python3 py3-cryptography"
subpackages="
	$pkgname-doc
	$pkgname-bash-completion
	$pkgname-fish-completion
	$pkgname-zsh-completion
	"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~zethra/stargazer/archive/$pkgver.tar.gz"
builddir="$srcdir/stargazer-$pkgver"
[ "$CARCH" = "armhf" ] && options="$options !check" # failing ci tests

build() {
	./scripts/build
}

check() {
	CARGO_ARGS='--release' ./scripts/test --skip IPv6Address,SCGIVars
}

package() {
	./scripts/install --prefix="$pkgdir/usr" \
		--sysconfdir="$pkgdir/etc" \
		--bashdir="$pkgdir/usr/share/bash-completion/completions" \
		--zshdir="$pkgdir/usr/share/zsh/site-functions" \
		--fishdir="$pkgdir/usr/share/fish/completions"
}

sha512sums="
c35062621f9135765ff276674a1842c764cfe9846acc6aab9779666827a47333e0b75db900ce1297dc43e7e29003039c4b87e86dee2056f65d246adb1573bc14  stargazer-gmi-0.6.1.tar.gz
"