mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 12:37:14 +08:00
33 lines
925 B
Bash
33 lines
925 B
Bash
#
|
|
# Core Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer abveritas[at]chakra-project[dot]org>
|
|
|
|
pkgname=db
|
|
pkgver=5.3.21
|
|
pkgrel=1
|
|
pkgdesc="The Berkeley DB embedded database system"
|
|
arch=('x86_64')
|
|
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")
|
|
md5sums=('3fda0b004acdaa6fa350bfc41a3b95ca')
|
|
|
|
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 -rf ${pkgdir}/usr/docs
|
|
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/LICENSE \
|
|
${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
|
|
}
|