core/db/PKGBUILD

29 lines
846 B
Bash
Raw Permalink Normal View History

2010-03-13 23:25:19 +08:00
pkgname=db
2016-03-14 23:42:02 +08:00
pkgver=5.3.28
2018-01-19 04:54:25 +08:00
pkgrel=2
2010-03-13 23:25:19 +08:00
pkgdesc="The Berkeley DB embedded database system"
arch=('x86_64')
2016-03-14 09:07:25 +08:00
url="http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html"
2010-03-13 23:25:19 +08:00
license=('custom')
depends=('gcc-libs' 'sh')
install=db.install
source=("http://download.oracle.com/berkeley-db/db-${pkgver}.tar.gz")
2016-03-14 23:42:02 +08:00
sha1sums=('fa3f8a41ad5101f43d08bc0efb6241c9b6fc1ae9')
2010-03-13 23:25:19 +08:00
build() {
cd ${srcdir}/$pkgname-${pkgver}/build_unix
2010-03-13 23:25:19 +08:00
../dist/configure --prefix=/usr --enable-compat185 \
2016-03-14 09:07:25 +08:00
--enable-shared --enable-static --enable-cxx --enable-dbm \
--enable-stl
make LIBSO_LIBS=-lpthread
2010-05-16 23:08:55 +08:00
}
package() {
cd ${srcdir}/$pkgname-${pkgver}/build_unix
2010-03-13 23:25:19 +08:00
make DESTDIR=${pkgdir} install
rm -rf ${pkgdir}/usr/docs
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/LICENSE \
2010-03-13 23:25:19 +08:00
${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}