summaryrefslogblamecommitdiff
path: root/system/db/APKBUILD
blob: 58772414337c1afdbbffbdd4f08b80b2dd2054dc (plain) (tree)
1
2
3
4
5
6
7
8
              
             
        

                                                                                
                                                

                                    
                                                                       
                                                                 
                     
                    
         
           
                         

          
                                 






                                         
                                 

           
                                      


                                                              
                                              














                                                                    
                                                                                                                                                              
                                                                                                                                               
# Maintainer: 
pkgname=db
pkgver=5.3.28
pkgrel=2
pkgdesc="The Berkeley DB embedded database system"
url="https://www.oracle.com/technology/software/products/berkeley-db/index.html"
arch="all"
options="!check"  # "check target not available"
license="Sleepycat AND BSD-3-Clause"
depends=""
makedepends=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-utils $pkgname-c++:cxx"
source="https://download.oracle.com/berkeley-db/db-$pkgver.tar.gz
	atomics.patch
	time64.patch
	"

prepare() {
	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
8ba96cfc3e484a839b8651214f0769b35273c6235de7e53d5118eb0347f5a477f75e3336a12f1399b7748c6b6ab95aec39c8b813d7b227dd61f37ed4ab52f7d5  atomics.patch
5712bc36bd362820912bc899aff9738318b6f920e9fa71bef33c0d5c62dff7943827460b7b2194019738acfac2713954d01eab68c68ca02473f8d3f1a0950c48  time64.patch"