mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-01-24 02:22:15 +08:00
39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
#
|
|
# Core Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=db
|
|
pkgver=4.8.30
|
|
_basever=4.8.30
|
|
pkgrel=2
|
|
pkgdesc="The Berkeley DB embedded database system"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.oracle.com/technology/software/products/berkeley-db/index.html"
|
|
license=('custom')
|
|
depends=('gcc-libs' 'sh')
|
|
conflicts=('db4')
|
|
options=('!libtool')
|
|
install=db.install
|
|
source=(http://download-uk.oracle.com/berkeley-db/db-${_basever}.tar.gz)
|
|
md5sums=('f80022099c5742cd179343556179aa8c')
|
|
|
|
build() {
|
|
cd ${srcdir}/$pkgname-${_basever}/build_unix
|
|
../dist/configure --prefix=/usr --enable-compat185 \
|
|
--enable-shared --enable-static --enable-cxx --enable-dbm
|
|
make LIBSO_LIBS=-lpthread
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/$pkgname-${_basever}/build_unix
|
|
make DESTDIR=${pkgdir} install
|
|
rm -rf ${pkgdir}/usr/docs
|
|
install -Dm644 ${srcdir}/${pkgname}-${_basever}/LICENSE \
|
|
${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
|
|
}
|