summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6d4906a6ee5f6e81d01ce7bfdf75d35bc421b056 (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
# Maintainer: Mykola Dimura <mykola.dimura@gmail.com>
pkgname=libcuckoo-git
pkgver=r364.86d5ef0
pkgrel=1
pkgdesc="libcuckoo provides a high-performance, compact hash table that allows multiple concurrent reader and writer threads."
arch=('any')
url='https://github.com/efficient/libcuckoo'
license=('Apache License, Version 2.0')
depends=()
makedepends=('cmake' 'git')
options=('!strip' '!buildflags' 'staticlibs')
source=("${pkgname}::git+https://github.com/efficient/libcuckoo.git#branch=master")
sha1sums=('SKIP')

build() {
    cd "$srcdir/${pkgname}"
    mkdir -p build && pushd build
    cmake ..
    make
    popd
}

package() {
    cd "$srcdir/${pkgname}/build"
    make DESTDIR="$pkgdir" install 
}
 
pkgver() {
  cd "$srcdir/${pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}