aboutsummaryrefslogtreecommitdiffstats
path: root/main/sparsehash/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/sparsehash/APKBUILD')
-rw-r--r--main/sparsehash/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/main/sparsehash/APKBUILD b/main/sparsehash/APKBUILD
new file mode 100644
index 0000000000..33167657cd
--- /dev/null
+++ b/main/sparsehash/APKBUILD
@@ -0,0 +1,50 @@
+# 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
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="1db92ed7f257d9b5f14a309d75e8a1d4 sparsehash-2.0.2.tar.gz"
+sha256sums="2ed639a7155607c097c2029af5f4287296595080b2e5dd2e2ebd9bbb7450b87c sparsehash-2.0.2.tar.gz"
+sha512sums="27d823551bc8364dd3c10f071e51bab55d2bbe9cf74ddb8337d118475aa7fdd38ae07dbb7dbd721c1350830325cadccdadf127f9996f26387e412e108edba3a1 sparsehash-2.0.2.tar.gz"