SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "gyrus"

# SliTaz package receipt.

PACKAGE="gyrus"
VERSION="0.3.12"
CATEGORY="network"
SHORT_DESC="Small tool for the administration of mailboxes in IMAP/Cyrus servers."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://wiki.gnome.org/Attic/Gyrus"

TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"

DEPENDS="dbus GConf gnet gtk+ libglade ORBit2"
BUILD_DEPENDS="dbus-dev GConf-dev gnet-dev gtk+ intltool libglade-dev ORBit2-dev"

current_version()
{
    wget -O - $(dirname $WGET_URL) 2>/dev/null | \
    sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lm"

    ./configure $CONFIGURE_ARGS &&
    make -j 1 &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share

    cp -a $install/usr/bin            $fs/usr
    cp -a $install/usr/share/$PACKAGE    $fs/usr/share
    if ! grep ^Icon= $install/usr/share/applications/gyrus.desktop; then
        echo 'Icon=web-browser' >> $install/usr/share/applications/gyrus.desktop
    fi
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)