# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=sparsehash
pkgver=2.0.4
pkgrel=0
pkgdesc="Library that contains several hash-map implementations"
url="https://github.com/sparsehash/sparsehash"
arch="all"
license="BSD-3-Clause"
subpackages="$pkgname-doc"
source="https://github.com/sparsehash/sparsehash/archive/sparsehash-$pkgver.tar.gz"
builddir="$srcdir"/sparsehash-sparsehash-$pkgver

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="40c007bc5814dd5f2bdacd5ec884bc5424f7126f182d4c7b34371f88b674456fc193b947fdd283dbd0c7eb044d8f06baf8caec6c93e73b1b587282b9026ea877  sparsehash-2.0.4.tar.gz"
