wok view tokyocabinet/receipt @ rev 24535

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Feb 23 11:49:52 2022 +0000 (2022-02-23)
parents 818f9829ca52
children 28a7087bc745
line source
1 # SliTaz package receipt.
3 PACKAGE="tokyocabinet"
4 VERSION="1.4.48"
5 CATEGORY="development"
6 SHORT_DESC="High performance database library, successor of QDBM."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://fallabs.com/tokyocabinet/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}$TARBALL"
14 DEPENDS="bzlib zlib"
15 BUILD_DEPENDS="bzip2-dev zlib-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://dbmx.net/tokyocabinet/index.html 2>/dev/null | \
21 sed '/Latest Source/!d;s|.*tokyocabinet-||;s|.tar.*||;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 ./configure \
28 --prefix=/usr \
29 --enable-off64 \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/lib
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/libexec $fs/usr
42 cp -a $install/usr/lib/*.so* $fs/usr/lib
43 }