summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/db/PKGBUILD
blob: e41aeacb16eca381cb3b2be0b211bb2f72ea94a5 (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
# $Id: PKGBUILD 3741 2008-06-30 20:07:01Z andyrtr $
# Maintainer: Andreas Radke <andyrtr@archlinux.org>

pkgname=db
pkgver=4.7.25
pkgrel=10
pkgdesc="The Berkeley DB embedded database system"
arch=(i686 x86_64)
license=('custom')
url="http://www.oracle.com/technology/software/products/berkeley-db/index.html"
groups=('base')
depends=('gcc-libs' 'coreutils')
options=('!libtool')
source=(http://download-uk.oracle.com/berkeley-db/db-$pkgver.tar.gz)
install=(db.install)
md5sums=('ec2b87e833779681a0c3a814aa71359e')

build() {
  cd ${srcdir}/$pkgname-$pkgver/build_unix
  ../dist/configure --prefix=/usr --enable-compat185 \
    --enable-shared --enable-static --enable-cxx
  make LIBSO_LIBS=-lpthread || return 1
  make DESTDIR=${pkgdir} install
  rm -rf ${pkgdir}/usr/docs
  mkdir -p ${pkgdir}/usr/share/licenses/${pkgname}
  install -m644 ${srcdir}/${pkgname}-${pkgver}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}