blob: d6ed24970ba185cb0e2b635304bb50190a0fad1f (
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
|
# Maintainer: Roshless <pkg@roshless.com>
pkgname=kineto-git
pkgver=r21.988a00f
pkgrel=1
pkgdesc='An HTTP to Gemini proxy'
url='https://git.sr.ht/~sircmpwn/kineto'
arch=('x86_64' 'i686')
license=('GPL')
depends=('glibc')
makedepends=('git' 'go')
source=("kineto-git::git+https://git.sr.ht/~sircmpwn/kineto")
pkgver() {
cd $pkgname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd $pkgname
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
go build -o kineto .
}
package() {
cd $pkgname
install -Dm755 kineto -t "$pkgdir/usr/bin/"
}
md5sums=('SKIP')
|