blob: c5afa1d04c95485099877195cae40cf1032d6abe (
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
|
# Contributor: Morteza NourelahiAlamdari <m@0t1.me>
# Contributor: Dimitris Kiziridis <ragouel at outlook dot com>
# Maintainer: tee < teeaur at duck dot com >
pkgname=badgerdb
_name=badger
pkgver=4.4.0
pkgrel=1
pkgdesc="An embeddable, persistent and fast key-value (KV) database written in pure Go"
arch=('x86_64')
url='https://dgraph.io/badger'
license=('Apache')
depends=('glibc')
makedepends=('go')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/dgraph-io/badger/archive/v${pkgver}.tar.gz")
sha256sums=('8af452eac8a20c377dfafacf58ea892a9e9ec3980961e3adb8b83ff76c92e20f')
prepare() {
cd "${srcdir}/${_name}-${pkgver}/badger"
mkdir -p build/
}
build() {
cd "${srcdir}/${_name}-${pkgver}/badger"
export CGO_LDFLAGS="${LDFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw"
go build -o build ./...
}
package() {
cd "${srcdir}/${_name}-${pkgver}/badger"
install -Dm755 build/badger "${pkgdir}/usr/bin/badger"
}
|