summaryrefslogtreecommitdiffstats
path: root/abs/core/tdb/PKGBUILD
blob: 44f1e695e7028e770503edc849d80c7fa111b62f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# $Id: PKGBUILD 89866 2010-09-04 14:37:32Z remy $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Contributorr: eric <eric@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>

pkgname=tdb
pkgver=1.2.1
pkgrel=3
pkgdesc="A Trivia Database similar to GDBM but allows simultaneous commits"
arch=(i686 x86_64)
license=('GPL3')
url="http://tdb.samba.org/"
source=(http://samba.org/ftp/${pkgname}/${pkgname}-${pkgver}.tar.gz)
makedepends=('python2' 'libxslt' 'docbook-xsl')
optdepends=('python2: for python bindings')
options=(force)

build() {
   cd ${srcdir}/${pkgname}-${pkgver}
   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.0/manpages/docbook.xsl"
   sed -i "s#http.*xsl#$_manstyle#" tdb.mk

   ./configure --prefix=/usr \
               --localstatedir=/var \
               --sysconfdir=/etc/samba
   make || return 1
}
package() {
   cd ${srcdir}/${pkgname}-${pkgver}
   make DESTDIR=${pkgdir} install
}
md5sums=('73ea81282a82e5c959d9c082af2d0215')