Commit 241d84e4 authored by Roberto Oliveira's avatar Roberto Oliveira

testing/leveldb: upgrade to 1.20 and modernize

parent 3cea60cb
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer:
pkgname=leveldb
pkgver=1.18
pkgver=1.20
pkgrel=0
pkgdesc="A fast and lightweight key/value database library by Google"
url="https://github.com/google/leveldb"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="$depends_dev snappy-dev"
install=""
makedepends="snappy-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/google/$pkgname/archive/v$pkgver.tar.gz"
_builddir="$srcdir"/leveldb-$pkgver
builddir="$srcdir/$pkgname-$pkgver"
build() {
cd "$_builddir"
make || return 1
cd "$builddir"
make
}
package() {
cd "$_builddir"
cd "$builddir"
mkdir -p "$pkgdir"/usr/lib "$pkgdir"/usr/share/doc
cp -a lib*.so* "$pkgdir"/usr/lib || return 1
cp -a include "$pkgdir"/usr/ || return 1
cp -a doc "$pkgdir"/usr/share/doc/$pkgname || return 1
cp -a out-shared/lib*.so* "$pkgdir"/usr/lib
cp -a include "$pkgdir"/usr/
cp -a doc "$pkgdir"/usr/share/doc/$pkgname
}
md5sums="73770de34a2a5ab34498d2e05b2b7fa0 leveldb-1.18.tar.gz"
sha256sums="4aa1a7479bc567b95a59ac6fb79eba49f61884d6fd400f20b7af147d54c5cee5 leveldb-1.18.tar.gz"
sha512sums="3d9c55a7bf8692914784ec33c273704ce9978496b071c7b661708f049d0d4ccd51a44441f50c3e536725caeb9896575192f52708a4bb1c0222cecdeec89919a3 leveldb-1.18.tar.gz"
sha512sums="c59258f2f58ce2d5680e9ab3da4ab0923d91cd4648dcf63cdaa26cdde92bf45e094544539ad11d8e09a4a4813435286143ed0e86c21c6c31a0596903ed4744d2 leveldb-1.20.tar.gz"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment