blob: bf920315f21e3e163b664a9445c28937c710f55f (
plain) (
blame)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Maintainer:
pkgname=db
pkgver=5.3.28
pkgrel=0
pkgdesc="The Berkeley DB embedded database system"
url="https://www.oracle.com/technology/software/products/berkeley-db/index.html"
arch="all"
license="Sleepycat AND BSD-3-Clause"
options="!check" # "check target not available"
depends=
makedepends=
subpackages="$pkgname-dev $pkgname-doc $pkgname-utils $pkgname-c++:cxx"
source="http://download.oracle.com/berkeley-db/db-$pkgver.tar.gz
"
prepare() {
cd "$builddir"
update_config_sub
default_prepare
}
build () {
cd "$builddir"/build_unix
../dist/configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--mandir=/usr/share/man \
--enable-compat185 \
--enable-shared \
--enable-cxx \
--disable-static
make LIBSO_LIBS=-lpthread
}
package() {
cd "$builddir"/build_unix
make DESTDIR="$pkgdir" install
mkdir -p "$pkgdir"/usr/share/doc
mv "$pkgdir"/usr/docs "$pkgdir"/usr/share/doc/$pkgname
install -D -m644 "$builddir"/LICENSE \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
utils() {
pkgdesc="Utils for The Berkeley DB embedded database system"
replaces="db"
mkdir -p "$subpkgdir"/usr/
mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
}
cxx() {
pkgdesc="C++ binding for libdb"
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/libdb_cxx*.so "$subpkgdir"/usr/lib/
}
sha512sums="e91bbe550fc147a8be7e69ade86fdb7066453814971b2b0223f7d17712bd029a8eff5b2b6b238042ff6ec1ffa6879d44cb95c5645a922fee305c26c3eeaee090 db-5.3.28.tar.gz"
|