SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "notify-python"

# SliTaz package receipt.

PACKAGE="notify-python"
VERSION="0.1.1"
CATEGORY="system-tools"
SHORT_DESC="Python binding to libnotify"
MAINTAINER="pankso@slitaz.org"
LICENSE="LGPL2.1"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="https://web.archive.org/web/20220328061829/https://galago-project.org/news/index.php"
WGET_URL="https://web.archive.org/web/20210506225836if_/https://www.galago-project.org/files/releases/source/$PACKAGE/$TARBALL"
TAGS="python"

DEPENDS="python libnotify"
BUILD_DEPENDS="python-dev libnotify-dev pygtk pygtk-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
    sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's/, attach//;s/ attach[^;]*//;/GtkWidget .attach/d' src/pynotify.c
    ./configure \
        --prefix=/usr \
        $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    cp -a $install/usr/lib $fs/usr
    cp -a $install/usr/share $fs/usr
}
6063 packages and 233209 files in current database (Sat Dec 21 00:00:03 2024)