wok view mdbtools/receipt @ rev 25037

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