wok-current view libtdb/receipt @ rev 25672
patch tazpkg, upgrade core pkgs first
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sun Mar 03 17:58:42 2024 +0000 (5 months ago) |
parents | ede1d184d5c5 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="libtdb"
4 VERSION="1.4.5"
5 CATEGORY="misc"
6 SHORT_DESC="A Trivia Database similar to GDBM but allows simultaneous commits."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="LGPL3"
9 WEB_SITE="https://tdb.samba.org/"
10 REPOLOGY="tdb"
12 SOURCE="tdb"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="https://www.samba.org/ftp/$SOURCE/$TARBALL"
16 DEPENDS=""
17 BUILD_DEPENDS="docbook-xsl libxslt-dev py3k-dev"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - ${WGET_URL%/*} 2>/dev/null | \
23 sed "/latest/d;/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 # 1.4.3 uses python3
30 # sed -i 's#python2\.6\([^ ]*\)#python2.7\1 python2.6\1#' configure
31 # Use system docbook.xsl
32 _manstyle="/usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl"
33 #sed -i "s#http.*xsl#$_manstyle#" tdb.mk
35 ./configure \
36 --prefix=/usr &&
37 make &&
38 make install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib
45 cp -a $install/usr/lib/*.so* $fs/usr/lib
46 }