blob: 9bc36a8cfe6367f17fbaf48bb75d4a082074d8b9 (
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
|
# Maintainer: Federico Serra <fedeztk at tutanota dot com>
pkgname=go-translation-git
_name=got
pkgver=r88.bd746d7
pkgrel=1
pkgdesc="Translating TUI written in go using simplytranslate and lingvatranslate APIs"
arch=('any')
url="https://github.com/fedeztk/got"
license=('MIT')
depends=('glibc')
makedepends=('go' 'git')
provides=('got')
conflicts=('got')
source=('git+https://github.com/fedeztk/got.git')
sha256sums=('SKIP')
build() {
cd "$_name"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
go build -o got ./cmd/got/main.go
}
package() {
cd "$_name"
install -Dm755 got "$pkgdir/usr/bin/got"
install -Dm644 license "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|