opt/robin-hood-hashing/Pkgfile

22 lines
655 B
Plaintext

# Description: Fast & memory efficient hashtable based on robin hood hashing for C++11/14/17/20
# URL: https://github.com/martinus/robin-hood-hashing
# Maintainer: CRUX System Team, core-ports at crux dot nu
name=robin-hood-hashing
version=3.11.5
release=2
source=(https://github.com/martinus/robin-hood-hashing/archive/$version/$name-$version.tar.gz)
build() {
cmake -S $name-$version -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_LIBDIR=share \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D RH_STANDALONE_PROJECT=OFF \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
}