New package: lmdb-0.9.10.

This commit is contained in:
Juan RP 2013-12-08 09:28:08 +01:00
parent 27e4fc46ff
commit 1647013a1f
3 changed files with 58 additions and 0 deletions

1
srcpkgs/lmdb-devel Symbolic link
View File

@ -0,0 +1 @@
lmdb

View File

@ -0,0 +1,17 @@
--- libraries/liblmdb/Makefile.orig 2013-12-08 09:17:29.298223935 +0100
+++ libraries/liblmdb/Makefile 2013-12-08 09:18:54.841750719 +0100
@@ -35,10 +35,10 @@ PROGS = $(IPROGS) mtest mtest2 mtest3 mt
all: $(ILIBS) $(PROGS)
install: $(ILIBS) $(IPROGS) $(IHDRS)
- for f in $(IPROGS); do cp $$f $(DESTDIR)$(prefix)/bin; done
- for f in $(ILIBS); do cp $$f $(DESTDIR)$(prefix)/lib; done
- for f in $(IHDRS); do cp $$f $(DESTDIR)$(prefix)/include; done
- for f in $(IDOCS); do cp $$f $(DESTDIR)$(prefix)/man/man1; done
+ for f in $(IPROGS); do install -Dm755 $$f $(DESTDIR)$(prefix)/bin/$$f; done
+ for f in $(ILIBS); do install -Dm644 $$f $(DESTDIR)$(prefix)/lib/$$f; done
+ for f in $(IHDRS); do install -Dm644 $$f $(DESTDIR)$(prefix)/include/$$f; done
+ for f in $(IDOCS); do install -Dm644 $$f $(DESTDIR)$(prefix)/share/man/man1/$$f; done
clean:
rm -rf $(PROGS) *.[ao] *.so *~ testdb

40
srcpkgs/lmdb/template Normal file
View File

@ -0,0 +1,40 @@
# Template file for 'lmdb'
pkgname=lmdb
version=0.9.10
revision=1
short_desc="Lightning Memory-Mapped Database Manager"
maintainer="Juan RP <xtraeme@gmail.com>"
license="OpenLDAP 2.8 license"
homepage="http://symas.com/mdb/"
do_fetch() {
git clone -b LMDB_${version} git://gitorious.org/mdb/mdb.git lmdb-${version}
}
do_build() {
cd libraries/liblmdb
make XCFLAGS="$CFLAGS" CC="$CC"
}
do_install() {
cd libraries/liblmdb
make DESTDIR=${DESTDIR} prefix=/usr install
vinstall LICENSE 644 usr/share/licenses/lmdb
vinstall COPYRIGHT 644 usr/share/licenses/lmdb
}
lmdb-devel_package() {
short_desc+=" - development files"
depends="lmdb>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
}
}
lmdb_package() {
pkg_install() {
vmove all
}
}