File PKGBUILD of Package parallel-hashmap
# Maintainer: Oleksandr Natalenko <oleksandr@natalenko.name>
pkgname=parallel-hashmap
pkgver=2.0.0
pkgrel=1
pkgdesc="Header-only hashmap and btree containers"
url=https://greg7mdp.github.io/parallel-hashmap
license=(Apache-2.0)
arch=(any)
makedepends=(cmake ninja)
source=(https://github.com/greg7mdp/parallel-hashmap/archive/v$pkgver.tar.gz)
sha256sums=('4f462f51a3468166ea4cf87c80e001dc1999093264cf55cbda3492ca39a7730b')
build() {
cmake -B build -S ${pkgname}-${pkgver} -G Ninja \
-D CMAKE_BUILD_TYPE=None \
-D CMAKE_INSTALL_PREFIX=/usr \
-D PHMAP_BUILD_TESTS=OFF
cmake --build build
}
package() {
DESTDIR="${pkgdir}" cmake --install build
}