diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-09-07 03:48:37 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-09-08 08:53:07 +0000 |
commit | e605b86f3c117d9828b3565b346e529b69ed8fe5 (patch) | |
tree | 949e3b68f56e14f374a89fb75788b5415430ea42 /main/tdb | |
parent | fbdaabff89ac5f3dc2af9e4e34a2aa1a22d52cc9 (diff) | |
download | aports-e605b86f3c117d9828b3565b346e529b69ed8fe5.tar.bz2 aports-e605b86f3c117d9828b3565b346e529b69ed8fe5.tar.xz |
main/tdb: upgrade to 1.3.15, modernize and add check
Also add doc tdb package
Diffstat (limited to 'main/tdb')
-rw-r--r-- | main/tdb/APKBUILD | 37 |
1 files changed, 15 insertions, 22 deletions
diff --git a/main/tdb/APKBUILD b/main/tdb/APKBUILD index c35e900850..edc73c2c61 100644 --- a/main/tdb/APKBUILD +++ b/main/tdb/APKBUILD @@ -1,32 +1,21 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=tdb -pkgver=1.3.14 +pkgver=1.3.15 pkgrel=0 pkgdesc="The tdb library" url="http://tdb.samba.org/" arch="all" license="LGPLv3+" -depends="" depends_dev="python2" -makedepends="$depends_dev python2-dev" -install="" -subpackages="$pkgname-dev py-$pkgname:_py $pkgname-libs" +makedepends="$depends_dev python2-dev docbook-xsl" +subpackages="$pkgname-dev py-$pkgname:_py $pkgname-libs $pkgname-doc" source="http://samba.org/ftp/tdb/tdb-$pkgver.tar.gz " -_builddir="$srcdir"/tdb-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +builddir="$srcdir/$pkgname-$pkgver" build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -37,14 +26,18 @@ build() { --localstatedir=/var \ --disable-rpath \ --bundled-libraries=NONE \ - --builtin-libraries=replace \ - || return 1 - make || return 1 + --builtin-libraries=replace + make +} + +check() { + cd "$builddir" + make check } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install } _py() { @@ -58,4 +51,4 @@ libs() { replaces="tdb" } -sha512sums="776b736d5c61cb796e19731141a85606cbe90e09943d813e0b7bf45066656d4a92ba449d0116664f65b9d8e5729bde4526170bbb1b7b46fd7a2fac1508f3841b tdb-1.3.14.tar.gz" +sha512sums="553246d5e7a7c22ea1b00962ac635d608f6d2344201862e796cad3b1a20610da1f5652ec9dbcb0187867fbd25f36247fcc34e9b4b2c3488c15d7202c9fb13bbb tdb-1.3.15.tar.gz" |