packages/robin-map/PKGBUILD

31 lines
887 B
Bash

# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
pkgname=robin-map
pkgver=1.3.0
pkgrel=1
pkgdesc="C++ implementation of a fast hash map and hash set using robin hood hashing"
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url="https://github.com/Tessil/robin-map"
license=('MIT')
makedepends=('cmake')
source=("$pkgname-$pkgver.tar.gz::https://github.com/Tessil/robin-map/archive/v${pkgver}.tar.gz")
sha512sums=('862cb98d771d1acb692e27d1cc8a4f2cda0883b66af7b38b63ea702ed2d4fc4d49e5700ca4d5f5148fee132f36e111c4839d4f8c52c96a9c60f3937d941b2320')
build() {
cd $pkgname-$pkgver
cmake . \
-Bbuild \
-DCMAKE_INSTALL_PREFIX=/usr
make -C build
}
package() {
cd $pkgname-$pkgver
DESTDIR="$pkgdir" make -C build install
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}