wok-current annotate mdbtools/receipt @ rev 25460

Update sourceforge.net web_sites with https://
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 28 08:10:35 2022 +0000 (2022-09-28)
parents afae00265386
children
rev   line source
pascal@13582 1 # SliTaz package receipt.
pascal@13582 2
pascal@13582 3 PACKAGE="mdbtools"
pascal@13582 4 VERSION="0.6pre1"
pascal@13582 5 CATEGORY="development"
pascal@13582 6 SHORT_DESC="Export Microsoft's Access database."
pascal@13582 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
pascal@13582 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@25460 10 WEB_SITE="https://mdbtools.sourceforge.net/"
pascal@13582 11 WGET_URL="$SF_MIRROR/$PACKAGE/$PACKAGE/$VERSION/$TARBALL"
pascal@13582 12
pascal@13582 13 DEPENDS="ncurses readline glib libunixODBC libltdl"
pascal@13583 14 BUILD_DEPENDS="bison flex unixODBC-dev glib-dev readline-dev"
pascal@13582 15
pascal@24402 16 # What is the latest version available today?
pascal@24402 17 current_version()
pascal@24402 18 {
pascal@24402 19 wget -O - https://sourceforge.net/projects/mdbtools/files/mdbtools/ 2>/dev/null | \
pascal@24402 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24402 21 sed '/scope="row/!d;s|.*/mdbtools/||;s|/.*||;q'
pascal@24402 22 }
pascal@24402 23
pascal@13582 24 # Rules to configure and make the package.
pascal@13582 25 compile_rules()
pascal@13582 26 {
pascal@13582 27 sed -i 's|.*mdb_backends;|// &|' include/mdbtools.h
pascal@13582 28 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@13582 29 --enable-sql --with-unixodbc=/usr \
pascal@13582 30 --mandir=/usr/share/man \
pascal@13582 31 $CONFIGURE_ARGS &&
pascal@22351 32 make -j 1 &&
pascal@22351 33 make -j 1 DESTDIR=$DESTDIR install
pascal@13582 34 }
pascal@13582 35
pascal@13582 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13582 37 genpkg_rules()
pascal@13582 38 {
pascal@13582 39 cp -a $install/* $fs
pascal@13582 40 }