diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2015-06-03 21:32:30 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2015-06-03 21:32:30 +0200 |
commit | 1823a7cfcdfe6beb2e8f9ddf2966442e92fe5a2d (patch) | |
tree | ce2137cb648570a8231f47db68353386ca597f2a /main/sparsehash | |
parent | a6730c081e1d0b2a4818ab92a768eff02c079569 (diff) | |
download | aports-1823a7cfcdfe6beb2e8f9ddf2966442e92fe5a2d.tar.bz2 aports-1823a7cfcdfe6beb2e8f9ddf2966442e92fe5a2d.tar.xz |
testing/sparsehash: move to main
Diffstat (limited to 'main/sparsehash')
-rw-r--r-- | main/sparsehash/APKBUILD | 50 |
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" |