wok view libdbi/receipt @ rev 24844
libunibreak: add current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 25 09:14:23 2022 +0000 (2022-03-25) |
parents | 997c40094d11 |
children | 6e5c8ce7fb15 |
line source
1 # SliTaz package receipt.
3 PACKAGE="libdbi"
4 VERSION="0.9.0"
5 CATEGORY="development"
6 SHORT_DESC="Database independent abstraction layer for C."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="LGPL2+"
9 WEB_SITE="https://sourceforge.net/projects/libdbi/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://downloads.sourceforge.net/project/$PACKAGE/$PACKAGE/$PACKAGE-$VERSION/$TARBALL"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - https://sourceforge.net/projects/libdbi/files/libdbi/ 2>/dev/null | \
19 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
20 sed '/scope="row/!d;s|.*/libdbi-||;s|/.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure \
27 --prefix=/usr &&
28 make &&
29 make install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 cook_copy_files *.so*
36 }