aboutsummaryrefslogblamecommitdiffstats
path: root/main/tdb/APKBUILD
blob: de3efedd4f79f1917d509879dcb396ca8f882cfe (plain) (tree)
1
2
3
4
5
6
7
8

                                                   
            
        
                         
                            
          
                           


                                                  
                                   
                                                     
                                   

         
                      









                                           
                                           





                      


           

                                      

 






                                                           




                      
                                                                                                                                                               
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tdb
pkgver=1.4.2
pkgrel=0
pkgdesc="The tdb library"
url="https://tdb.samba.org/"
arch="all"
license="LGPL-3.0-or-later"
depends_dev="python3"
makedepends="$depends_dev python3-dev docbook-xsl"
subpackages="$pkgname-dev py3-$pkgname:_py3
	$pkgname-libs $pkgname-doc"
source="https://samba.org/ftp/tdb/tdb-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-rpath \
		--bundled-libraries=NONE \
		--builtin-libraries=replace
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

_py3() {
	pkgdesc="Python 3 binding for the tdb library"

	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/python3* "$subpkgdir"/usr/lib/
}

libs() {
	default_libs
	replaces="tdb"
}

sha512sums="1d1f83e1b79cc6ea2b5cbc755de4a370fb95ef0f592f3bd2b6d23b1be18555cd417a9254fdf276dc6bd7f3368af82a4569c1f1cdde13d98405a5d38f1291d832  tdb-1.4.2.tar.gz"