~zethra/stargazer

ref: 10715b06c6397456a98e5bb0f275f790ee96fd77 stargazer/contrib/pkg/alpine/APKBUILD -rw-r--r-- 1.2 KiB
10715b06Sashanoraa Update packages and gemini site 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
40
41
# Maintainer: Sashanoraa <sasha@noraa.gay>
pkgname=stargazer-gmi
pkgver=1.0.1
pkgrel=0
pkgdesc="A fast and easy to use 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-openrc
	$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"
	install -Dm644 ./contrib/init/stargazer.initd "$pkgdir/etc/init.d/stargazer"
}

sha512sums="
bc9a0ea509b1543f97fdea27f84f0f23b891899e0c520c39d73f2a3cb5d26d6c8e93a550f75ef9ede468be4c6b6858ff4010d7822b9dcd73a65b6f9206d4d4ec  stargazer-gmi-1.0.1.tar.gz
"