core/tdb/PKGBUILD
2017-05-25 01:14:50 +01:00

37 lines
1.2 KiB
Bash

# Contributions from Arch Linux: https://www.archlinux.org/packages/extra/x86_64/tdb/
pkgname=tdb
pkgver=1.3.13
pkgrel=1
pkgdesc="A Trivial Database similar to GDBM but allows simultaneous commits"
arch=('x86_64')
license=('GPL3')
url="http://tdb.samba.org/"
makedepends=('python2' 'libxslt' 'docbook-xsl')
optdepends=('python2: for python bindings')
source=(http://samba.org/ftp/${pkgname}/${pkgname}-${pkgver}.tar.gz
http://samba.org/ftp/${pkgname}/${pkgname}-${pkgver}.tar.asc)
md5sums=('75567d47771a1285c58eecd545e24232'
'SKIP')
validpgpkeys=('9147A339719518EE9011BCB54793916113084025') #Samba Library Distribution Key <samba-bugs@samba.org>
build() {
cd ${srcdir}/${pkgname}-${pkgver}
sed -i -e 's#python#python2#g' buildtools/bin/waf
#sed -i 's#python2\.6\([^ ]*\)#python2.7\1 python2.6\1#' configure
# Use system docbook.xsl
#_manstyle="/usr/share/xml/docbook/xsl-stylesheets-1.76.1/manpages/docbook.xsl"
#sed -i "s#http.*xsl#$_manstyle#" tdb.mk
export PYTHON=/usr/bin/python2
./configure --prefix=/usr \
--localstatedir=/var \
--sysconfdir=/etc/samba
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
export PYTHON=/usr/bin/python2
make DESTDIR=$pkgdir/ install
}