blob: bcad17d2f6923b226db38576993320bf954df088 (
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
32
33
34
35
36
|
# Contributor: omni <omni@gitlab.alpinelinux.org>
# Maintainer: omni <omni@gitlab.alpinelinux.org>
pkgname=amfora
pkgver=1.9.2 # Don't forget to update main.commit below
pkgrel=17
pkgdesc="terminal browser for the Gemini protocol"
url="https://github.com/makeworld-the-better-one/amfora"
license="GPL-3.0-or-later"
arch="all"
makedepends="go"
source="$pkgname-$pkgver.tar.gz::https://github.com/makeworld-the-better-one/amfora/archive/v$pkgver.tar.gz"
export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
build() {
go build \
-ldflags "-linkmode=external -extldflags \"$LDFLAGS\" \
-X main.version=$pkgver -X main.builtBy=Alpine_Linux \
-X main.commit=61d864540140f463a183e187e4211c258bd518bf" \
-v .
}
check() {
go test -v ./...
}
package() {
install -Dm0755 "$pkgname" -t "$pkgdir"/usr/bin
install -Dm0644 "$pkgname".desktop -t "$pkgdir"/usr/share/applications
install -Dm0644 default-config.toml -t "$pkgdir"/usr/share/"$pkgname"
}
sha512sums="d610217395add6219b3f56e15a5cf27d424807a1f82fde7f3fd953d91d571f85154bbffa0a766b3f7245a38f8849a96287edbf9475cb63bf9b6182e25e3d3ce9 amfora-1.9.2.tar.gz"
|