summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 080bb8a3ad56abc7cb634537b357b6445b85ac26 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Maintainer: libele <libele@disroot.org>
# Contributor: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: Andreas Radke <andyrtr@archlinux.org>

pkgname=lib32-db
pkgver=6.2.32
pkgrel=1
pkgdesc='The Berkeley DB embedded database system'
arch=('x86_64')
url='https://www.oracle.com/technology/software/products/berkeley-db/index.html'
license=('custom')
depends=("db=${pkgver}" 'lib32-gcc-libs')
makedepends=('gcc-multilib')
source=("https://download.oracle.com/berkeley-db/db-${pkgver}.tar.gz")
sha256sums=('a9c5e2b004a5777aa03510cfe5cd766a4a3b777713406b02809c17c8e0e7a8fb')

build() {
  cd db-${pkgver}/build_unix

  export CC='gcc -m32'
  export CXX='g++ -m32'
  export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'

  ../dist/configure \
    --prefix='/usr' \
    --libdir='/usr/lib32' \
    --enable-compat185 \
    --enable-cxx \
    --enable-dbm \
    --enable-shared \
    --disable-atomicsupport
  make LIBSO_LIBS='-lpthread'
}

package() {
  cd db-${pkgver}/build_unix

  make DESTDIR="${pkgdir}" install
  rm -rf "${pkgdir}"/usr/{bin,docs,include,share}

  install -dm 755 "${pkgdir}"/usr/share/licenses
  ln -s db "${pkgdir}"/usr/share/licenses/lib32-db
}

# vim: ts=2 sw=2 et: