blob: 1fcdd61d23321cae4aa455e7c7cc2fd5e6bedaf8 (
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
45
46
47
48
49
50
51
|
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>
pkgname=hse-git
pkgver=3.1.0.dev.r71.g6d5207f8
pkgrel=1
pkgdesc="Heterogeneous-memory storage engine"
arch=('i686' 'x86_64')
url="https://hse-project.github.io/"
license=('Apache')
depends=('glibc' 'cjson' 'curl' 'libbsd' 'libmicrohttpd' 'liburcu' 'libyaml' 'lz4' 'mongo-c-driver' 'pmdk' 'xxhash')
makedepends=('git' 'cmake' 'meson')
provides=("hse=$pkgver")
conflicts=('hse')
options=('staticlibs')
source=("git+https://github.com/hse-project/hse.git")
sha256sums=('SKIP')
pkgver() {
cd "hse"
_tag=$(git tag -l --sort -v:refname | sed '/rc[0-9]*/d' | head -n1)
_rev=$(git rev-list --count $_tag..HEAD)
_hash=$(git rev-parse --short HEAD)
printf "%s.r%s.g%s" "$_tag" "$_rev" "$_hash" | sed 's/^r//;s/-/./g'
}
build() {
cd "hse"
meson setup \
--buildtype=plain \
--prefix="/usr" \
-Dforce_fallback_for="" \
"_build"
meson compile -C "_build"
}
check() {
cd "hse"
#meson test -C "_build"
}
package() {
cd "hse"
meson install \
-C "_build" \
--destdir "$pkgdir"
}
|