SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "wv"

# SliTaz package receipt.

PACKAGE="wv"
VERSION="1.2.9"
CATEGORY="x-window"
SHORT_DESC="MS document manipulation library."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.abisource.com/projects/"
WGET_URL="http://www.abisource.com/downloads/wv/$VERSION/$TARBALL"

DEPENDS="glib libgsf libpng libxml2 zlib"
BUILD_DEPENDS="libgsf libgsf-dev glib-dev libxml2-dev libpng-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*/*}/ 2>/dev/null | \
    sed '/\[DIR/!d;/arent/d;s|.*ref="||;s|/.*||' | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    sed -i 's|.ac_install_sh -d|mkdir -p|' configure
    ./configure \
        --prefix=/usr \
        --mandir=/usr/share/man \
        $CONFIGURE_ARGS &&
    make 
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib $fs/usr/share
    cp -a $install/usr/bin $fs/usr
    chmod +x $fs/usr/bin/*
    cp -a $install/usr/lib/*.so* $fs/usr/lib
    cp -a $install/usr/share/wv $fs/usr/share
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)