blob: 8c83313f4ac25e555998bd0608edfafd96348ae3 (
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
|
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer:
pkgname=leveldb
pkgver=1.12.0
pkgrel=0
pkgdesc="A fast and lightweight key/value database library by Google"
url="http://code.google.com/p/leveldb/"
arch="all"
license="BSD"
depends=""
depends_dev=""
makedepends="$depends_dev snappy-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://leveldb.googlecode.com/files/leveldb-$pkgver.tar.gz"
_builddir="$srcdir"/leveldb-$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"
make || return 1
}
package() {
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
}
md5sums="940a93e3538636e1d6d3407ca41b6397 leveldb-1.12.0.tar.gz"
sha256sums="a50b44bcae9680c2872081df98395a34a1ac3162ea41f646676e53fb5f691108 leveldb-1.12.0.tar.gz"
sha512sums="b0798ecc598a7dcee38887867521face02b11ec93bc55e28fb3e1e16fb9c4d2068564f7779849a0dc0d758ee9665c2297c004947bedd149e392c129fc39a921f leveldb-1.12.0.tar.gz"
|