mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
44 lines
1.7 KiB
Bash
44 lines
1.7 KiB
Bash
# $Id: PKGBUILD 49911 2009-08-16 21:05:41Z jgc $
|
|
# Maintainer: Jan de Groot <jgc@archlinux.org>
|
|
pkgname=db4.1
|
|
pkgver=4.1.25
|
|
pkgrel=3
|
|
pkgdesc="The Berkeley DB embedded database system 4.1"
|
|
arch=(i686 x86_64)
|
|
license=('custom')
|
|
url="http://www.oracle.com/technology/software/products/berkeley-db/index.html"
|
|
depends=('gcc-libs')
|
|
options=('!libtool' '!makeflags')
|
|
source=(http://download-uk.oracle.com/berkeley-db/db-${pkgver}.tar.gz
|
|
http://www.oracle.com/technology/products/berkeley-db/db/update/4.1.25/patch.4.1.25.1
|
|
http://www.oracle.com/technology/products/berkeley-db/db/update/4.1.25/patch.4.1.25.2
|
|
http://www.oracle.com/technology/products/berkeley-db/db/update/4.1.25/patch.4.1.25.3)
|
|
md5sums=('d82ed75cb53b0daba4a7e959e8a6f86c'
|
|
'1e073d12cd89f9345e281ca07368f74b'
|
|
'5eedc6818783b4b89317d89d2babb6f7'
|
|
'bda83ce3ce18a3e9001d0c2eb90d9508')
|
|
|
|
build() {
|
|
cd "${srcdir}/db-${pkgver}/"
|
|
patch -Np0 -i "${srcdir}/patch.4.1.25.1" || return 1
|
|
patch -Np0 -i "${srcdir}/patch.4.1.25.2" || return 1
|
|
patch -Np0 -i "${srcdir}/patch.4.1.25.3" || return 1
|
|
cd build_unix
|
|
../dist/configure --prefix=/usr --enable-compat185 \
|
|
--enable-shared --disable-static --enable-cxx || return 1
|
|
make LIBSO_LIBS=-lpthread || return 1
|
|
make prefix="${pkgdir}/usr" \
|
|
includedir="${pkgdir}/usr/include/db4.1" install || return 1
|
|
|
|
rm -rf "${pkgdir}/usr/docs"
|
|
rm -f "${pkgdir}/usr/lib"/libdb{,_cxx}.so
|
|
rm -f "${pkgdir}/usr/lib"/libdb{,_cxx}-4.so
|
|
|
|
cd "${pkgdir}/usr/bin"
|
|
for i in *; do
|
|
mv ${i} db4.1_${i/db_/} || return 1
|
|
done
|
|
install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
install -m644 "${srcdir}/db-${pkgver}/LICENSE" \
|
|
"${pkgdir}/usr/share/licenses/${pkgname}/" || return 1
|
|
}
|