archrelease: copy trunk to community-any
[ArchLinux/community.git] / amfora / trunk / PKGBUILD
blobe47839bf154d066af39cca0f33a8e01ac07db1dc
1 # Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
2 # Contributor: Paul Boyd <boyd.paul2@gmail.com>
4 pkgname=amfora
5 pkgver=1.9.2
6 pkgrel=4
7 pkgdesc='Terminal browser for the Gemini protocol'
8 arch=(x86_64)
9 url='https://github.com/makeworld-the-better-one/amfora'
10 license=(GPL3)
11 makedepends=(git go)
12 source=('https://roboticoverlords.org/amfora.png'
13         "git+$url#commit=61d864540140f463a183e187e4211c258bd518bf") # tag: v1.9.2
14 b2sums=('1f93ca564c2ef8ef9a94102ac50781b740266a2413cb92ac900240c9324d2dee27a19e4b0a95f45edf933e07ed133f696b4f969e3cfa7cb26a57bfdc63a287cb'
15         'SKIP')
16 options=('!lto')
18 prepare() {
19   echo Icon=amfora >> amfora/amfora.desktop
22 build() {
23   cd amfora
24   go build -buildmode=pie -mod=readonly -modcacherw -trimpath -ldflags \
25     "-s -w -linkmode=external -extldflags $LDFLAGS -X main.version=$pkgver -X main.builtBy=Arch_Linux -X main.commit=${source#*=}"
28 package() {
29   install -Dm644 amfora.png "$pkgdir/usr/share/pixmaps/amfora.png"
30   install -Dm755 amfora/amfora "$pkgdir/usr/bin/amfora"
31   install -Dm644 amfora/amfora.desktop "$pkgdir/usr/share/applications/amfora.desktop"