SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "goldendict"

# SliTaz package receipt.

PACKAGE="goldendict"
VERSION="1.0.1"
CATEGORY="office"
SHORT_DESC="A feature-rich dictionary lookup program."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL3"
TARBALL="$PACKAGE-$VERSION-src.tar.bz2"
WEB_SITE="http://goldendict.org/"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="libQtWebkit libvorbis hunspell phonon xorg-libXtst"
BUILD_DEPENDS="libvorbis-dev zlib-dev hunspell-dev xorg-dev qmake Qt4-dev \
xorg-libXtst-dev phonon-dev"

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

# Rules to configure and make the package.
compile_rules()
{
    qmake && sed -i 's|local/||g' Makefile
    make &&
    make INSTALL_ROOT=$DESTDIR install
}

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