summaryrefslogtreecommitdiff
path: root/skip/leveldb/leveldb.xibuild
blob: d3805c987fa8dcb20a75bb3ced2298ced91482a2 (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
#!/bin/sh

NAME="leveldb"
DESC="A fast and lightweight key/value database library by Google"

MAKEDEPS="cmake snappy"

PKG_VER=1.23
SOURCE="https://github.com/google/leveldb/archive/$PKG_VER.tar.gz"

build() {
	mkdir build && cd build
	cmake .. \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=/usr/lib \
		-DLEVELDB_BUILD_TESTS=ON \
		-DLEVELDB_INSTALL=ON \
		-DBUILD_SHARED_LIBS=ON
	make
}

package() {
	make DESTDIR="$PKG_DEST" install
	mkdir -p "$PKG_DEST"/usr/share/doc
	cp -a ../doc "$PKG_DEST"/usr/share/doc/leveldb
}