blob: e1c2e7f2497f9f0b6adb0658a0a64fb8461f8fa0 (
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
37
38
39
40
41
42
43
44
|
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
pkgname=astronaut-git
pkgver=0.1.0.r2.g762f8a6
pkgrel=1
pkgdesc="Gemini browser for the terminal"
arch=('x86_64')
url="https://git.sr.ht/~adnano/astronaut"
license=('GPL3')
depends=('glibc')
makedepends=('git' 'go' 'scdoc')
options=('!lto')
source=(
"$pkgname::git+$url"
'Makefile.patch')
sha256sums=('SKIP'
'8e1d4bb411d3d678a9feb4bcfc53954279ebe0fb4c3a4583a3b7a541c05edcd2')
pkgver() {
git -C "$pkgname" describe --long --tags | sed 's/-/.r/;s/-/./'
}
prepare() {
cd "$pkgname"
patch -p1 < "$srcdir/Makefile.patch"
go mod tidy
}
build() {
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
cd "$pkgname"
./configure --prefix=/usr
make
}
package() {
cd "$pkgname"
make DESTDIR="$pkgdir/" install
}
|