summaryrefslogtreecommitdiff
path: root/core/db/PKGBUILD
blob: a9f751bca684a5239a9cc65cc6ab7051a49f3a76 (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
# $Id: PKGBUILD 146445 2012-01-11 15:20:54Z stephane $
# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: Andreas Radke <andyrtr@archlinux.org>

pkgname=db
pkgver=5.3.15
pkgrel=1
pkgdesc="The Berkeley DB embedded database system"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.oracle.com/technology/software/products/berkeley-db/index.html"
license=('custom')
depends=('gcc-libs' 'sh')
options=('!libtool')
install=db.install
source=(http://download.oracle.com/berkeley-db/db-${pkgver}.tar.gz)
sha1sums=('7683b632a01ff3543c379a120809a942ec457738')

build() {
  cd "${srcdir}/$pkgname-${pkgver}/build_unix"
  ../dist/configure --prefix=/usr --enable-compat185 \
    --enable-shared --enable-static --enable-cxx --enable-dbm
  make LIBSO_LIBS=-lpthread
}

package() {
  cd "${srcdir}/$pkgname-${pkgver}/build_unix"
  make DESTDIR="${pkgdir}" install
  rm -r "${pkgdir}"/usr/docs
  install -Dm644 "${srcdir}"/${pkgname}-${pkgver}/LICENSE \
    "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
}