diff options
author | Mykola Dimura | 2021-03-24 14:34:03 +0100 |
---|---|---|
committer | Mykola Dimura | 2021-03-24 14:34:03 +0100 |
commit | efb5b99a40079f8932a0b0db6cb3135ceba792a0 (patch) | |
tree | ae6a619b87e71b8881d0260e4e5139990907e310 | |
parent | 392f947b1017e0c3e45ee7fc2397a54a7c0d5670 (diff) | |
download | aur-efb5b99a40079f8932a0b0db6cb3135ceba792a0.tar.gz |
Specify CMAKE_INSTALL_PREFIX
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 21 |
2 files changed, 12 insertions, 11 deletions
@@ -1,6 +1,6 @@ pkgbase = libcuckoo-git pkgdesc = libcuckoo provides a high-performance, compact hash table that allows multiple concurrent reader and writer threads. - pkgver = r364.86d5ef0 + pkgver = 0.3.r0.g8785773 pkgrel = 1 url = https://github.com/efficient/libcuckoo arch = any @@ -1,6 +1,6 @@ # Maintainer: Mykola Dimura <mykola.dimura@gmail.com> pkgname=libcuckoo-git -pkgver=r364.86d5ef0 +pkgver=0.3.r0.g8785773 pkgrel=1 pkgdesc="libcuckoo provides a high-performance, compact hash table that allows multiple concurrent reader and writer threads." arch=('any') @@ -13,19 +13,20 @@ source=("${pkgname}::git+https://github.com/efficient/libcuckoo.git#branch=maste sha1sums=('SKIP') build() { - cd "$srcdir/${pkgname}" - mkdir -p build && pushd build - cmake .. - make - popd + cmake \ + -B "${pkgname}/build" \ + -S "${pkgname}" \ + -DCMAKE_BUILD_TYPE='None' \ + -DCMAKE_INSTALL_PREFIX='/usr' \ + -Wno-dev + make -C "${pkgname}/build" all } package() { - cd "$srcdir/${pkgname}/build" - make DESTDIR="$pkgdir" install + make -C "${pkgname}/build" DESTDIR="$pkgdir" install + install -D -m644 "${pkgname}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}" } pkgver() { - cd "$srcdir/${pkgname}" - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + git -C ${pkgname} describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//' } |