mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 06:24:37 +08:00
36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
# Maintainer: Martín Cigorraga <{name}{surname}@gmail.com>
|
|
# Contributions from Arch Linux: https://www.archlinux.org/packages/extra/x86_64/tdb/
|
|
|
|
pkgname=tdb
|
|
pkgver=1.2.12
|
|
pkgrel=1
|
|
pkgdesc="A Trivial Database similar to GDBM but allows simultaneous commits"
|
|
arch=('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')
|
|
md5sums=('53e6168a7c2c93735a1c024fd2c3a7b4')
|
|
|
|
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
|
|
}
|
|
|