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