SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "mdbtools"

# SliTaz package receipt.

PACKAGE="mdbtools"
VERSION="0.6pre1"
CATEGORY="development"
SHORT_DESC="Export Microsoft's Access database."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://mdbtools.sourceforge.net/"
WGET_URL="$SF_MIRROR/$PACKAGE/$PACKAGE/$VERSION/$TARBALL"

DEPENDS="ncurses readline glib libunixODBC libltdl"
BUILD_DEPENDS="bison flex unixODBC-dev glib-dev readline-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/mdbtools/files/mdbtools/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*/mdbtools/||;s|/.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's|.*mdb_backends;|// &|' include/mdbtools.h
    ./configure --prefix=/usr --infodir=/usr/share/info \
        --enable-sql --with-unixodbc=/usr \
        --mandir=/usr/share/man \
        $CONFIGURE_ARGS &&
    make -j 1 &&
    make -j 1 DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.   
genpkg_rules()                                      
{
    cp -a $install/* $fs
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)