blob: caeced2be8fc63b8bdb6898a274f1cfd8717841d (
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
43
44
45
46
47
48
49
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=sparsehash
pkgver=2.0.2
pkgrel=0
pkgdesc="Library that contains several hash-map implementations"
url="http://code.google.com/p/sparsehash"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://sparsehash.googlecode.com/files/sparsehash-$pkgver.tar.gz"
_builddir="$srcdir"/sparsehash-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
}
md5sums="1db92ed7f257d9b5f14a309d75e8a1d4 sparsehash-2.0.2.tar.gz"
sha256sums="2ed639a7155607c097c2029af5f4287296595080b2e5dd2e2ebd9bbb7450b87c sparsehash-2.0.2.tar.gz"
sha512sums="27d823551bc8364dd3c10f071e51bab55d2bbe9cf74ddb8337d118475aa7fdd38ae07dbb7dbd721c1350830325cadccdadf127f9996f26387e412e108edba3a1 sparsehash-2.0.2.tar.gz"
|