blob: 851fde778c0530ac085f61dd35364edb853d727b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Maintainer: KokaKiwi <kokakiwi+aur at kokakiwi dot net>
pkgname=parallel-hashmap
pkgver=1.4.1
pkgrel=1
pkgdesc='A family of header-only, very fast and memory-friendly hashmap and btree containers.'
url='https://greg7mdp.github.io/parallel-hashmap/'
license=('Apache-2.0')
arch=('any')
makedepends=('cmake' 'make' 'git' 'gtest')
optdepends=('python: For Conan python package manager.')
source=("$pkgname-$pkgver.tar.gz::https://github.com/greg7mdp/parallel-hashmap/archive/v$pkgver.tar.gz"
0001-makepkg-Use-system-gtest.patch)
sha256sums=('949874f4207b8735422438b23b884fb1f4b926689bb5eebff38cc4d357d09cd2'
'361c5b363fca4a247ba940f2bca1ee60e6ed889a1aebfd13b057a1e31e5c170e')
b2sums=('bcb5886173a25325c6381f0f174f08de33a2c9c9a0bd43eed6eee6273a2dba357fdfc09064a35aef219c03f7460cf10949808ea982e2dede89f4e103bcbe4b8f'
'7cea2282dd3787d94fa86ea37c01bed855f9163311ca3d91f5c0df27b273960ecea10ba13f94a434d56c5fdf568645aa3fb8c581337f1d93fee933c9b724078a')
prepare() {
cd "$pkgname-$pkgver"
patch -Np1 -i "$srcdir/0001-makepkg-Use-system-gtest.patch"
}
build() {
rm -rf build
cmake -B build -S "$pkgname-$pkgver" \
-D CMAKE_BUILD_TYPE=None \
-D CMAKE_INSTALL_PREFIX=/usr \
-D PHMAP_BUILD_TESTS=ON \
-D PHMAP_BUILD_EXAMPLES=OFF
make -C build
}
check() {
cmake --build build --target test
}
package() {
cmake --install build --prefix "$pkgdir/usr"
}
|