aports/main/db/APKBUILD
Natanael Copa 32e4a37817 main/db: fix build with gcc 14
Don't bother fix the configure scripts properly since we are not going
to upstream anything.
2024-08-07 10:52:02 +02:00

60 lines
1.5 KiB
Text

# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=db
pkgver=5.3.28
pkgrel=6
pkgdesc="The Berkeley DB embedded database system"
url="https://www.oracle.com/technology/software/products/berkeley-db/index.html"
arch="all"
license="BSD-3-Clause"
options="!check" # "check target not available"
subpackages="$pkgname-dev $pkgname-doc $pkgname-utils $pkgname-c++:cxx"
source="https://download.oracle.com/berkeley-db/db-$pkgver.tar.gz
atomic.patch
"
prepare() {
default_prepare
update_config_sub
}
build() {
cd build_unix
CFLAGS="$CFLAGS -fpermissive" ../dist/configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--mandir=/usr/share/man \
--enable-compat185 \
--enable-shared \
--enable-cxx \
--disable-static
make
}
package() {
make -C build_unix DESTDIR="$pkgdir" install
mkdir -p "$pkgdir"/usr/share/doc
mv "$pkgdir"/usr/docs "$pkgdir"/usr/share/doc/$pkgname
install -Dm644 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
e9fedc5b870b95fe772a8121fca8b3642327d960441fe40a1090375efd37eec397a508e6e9100c2817c02bb4380421eb8ea400aeb060fe46a8bdac83a1abfbeb atomic.patch
"