blob: 2866daf5d71b1dd0b295802d1c1ac3fd08b8c01e (
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
|
# Maintainer: Mario Finelli <mario at finel dot li>
pkgname=redli
pkgver=0.14.0
pkgrel=1
pkgdesc="A humane alternative to the Redis-cli and TLS"
arch=(x86_64)
url=https://github.com/IBM-Cloud/redli
license=(Apache-2.0)
depends=(glibc)
makedepends=(go)
source=(${url}/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.gz)
sha256sums=('9fda0bfaffa863507dd43d30a047d666f7d39e96b24cf118f53d7aeeb2c0a24f')
prepare() {
cd redli-$pkgver
export GOPATH="${srcdir}/gopath"
go mod download
}
check() {
cd redli-$pkgver
go test ./...
}
build() {
cd redli-$pkgver
export GOPATH="${srcdir}/gopath"
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 redli
}
package() {
cd redli-$pkgver
install -Dm0755 redli "$pkgdir/usr/bin/redli"
install -Dm0644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}
|