diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6d4906a6ee5f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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)" +} |