SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "listpatron"

# SliTaz package receipt.

PACKAGE="listpatron"
VERSION="0.1.1"
CATEGORY="office"
SHORT_DESC="GTK+2 application for maintaining lists of information.."
MAINTAINER="pankso@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="https://www.electricmonk.nl/Programmings/ListPatron"
WGET_URL="https://github.com/fboender/listpatron/releases/download/$VERSION/$TARBALL"

DEPENDS="gtk+ xorg-libXdamage"
BUILD_DEPENDS="gtk+-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/fboender/listpatron/releases 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    ./configure \
        --prefix=/usr \
        --libexecdir=/usr/lib/$PACKAGE \
        $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/share/applications
    cp -a $stuff/listpatron.desktop $fs/usr/share/applications
    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/share/pixmaps $fs/usr/share
    cp -a $install/usr/share/xml $fs/usr/share
    cd $fs/usr/share/pixmaps
    ln -s listpatron/icons/listpatron-col-add.png listpatron.png
}

6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)