summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-04-17 17:01:28 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-04-18 00:02:12 -0300
commit2d73907cd6b9c028b6249697b59f62d0b6bf6a6f (patch)
treecfff6f132d52a964c3e369fcafcf05c94586b563
parent0aad57de1a8fc6084e3b926ca81ec685bfbe4a1b (diff)
downloadabslibre-2d73907cd6b9c028b6249697b59f62d0b6bf6a6f.tar.gz
abslibre-2d73907cd6b9c028b6249697b59f62d0b6bf6a6f.tar.bz2
abslibre-2d73907cd6b9c028b6249697b59f62d0b6bf6a6f.zip
db-static: add new package to [libre]
-rw-r--r--libre/db-static/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/libre/db-static/PKGBUILD b/libre/db-static/PKGBUILD
new file mode 100644
index 000000000..43ef256cb
--- /dev/null
+++ b/libre/db-static/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Márcio Silva <coadde@parabola.nu>
+# based of db
+
+_pkgname=db
+pkgname=db-static
+pkgver=5.3.28
+pkgrel=3
+pkgdesc="The Berkeley DB embedded database system (static libraries only)"
+arch=('i686' 'x86_64' 'armv7h')
+url="http://www.oracle.com/technology/software/products/berkeley-db/index.html"
+license=('custom')
+depends=('db')
+options=('staticlibs')
+source=(http://download.oracle.com/berkeley-db/db-${pkgver}.tar.gz)
+sha1sums=('fa3f8a41ad5101f43d08bc0efb6241c9b6fc1ae9')
+
+build() {
+ cd "${srcdir}"/$_pkgname-${pkgver}/build_unix
+ ../dist/configure --prefix=/usr --enable-compat185 \
+ --disable-shared --enable-static --enable-cxx --enable-dbm \
+ --enable-stl
+ make LIBSO_LIBS=-lpthread
+}
+
+package() {
+ cd "${srcdir}"/$_pkgname-${pkgver}/build_unix
+ make DESTDIR="${pkgdir}" install
+ rm -r "${pkgdir}"/usr/docs
+
+ # remove conflicting files
+ rm -vr ${pkgdir}/usr/{bin,include}
+}