wok-current view notify-python/receipt @ rev 25443

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 03 09:28:15 2022 +0000 (2022-09-03)
parents df63c4ce07f8
children 9600878fc758
line source
1 # SliTaz package receipt.
3 PACKAGE="notify-python"
4 VERSION="0.1.1"
5 CATEGORY="system-tools"
6 SHORT_DESC="Python binding to libnotify"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="LGPL2.1"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://web.archive.org/web/20220328061829/https://galago-project.org/news/index.php"
11 WGET_URL="https://ftp.radix.pro/slackware/slackware_source/l/$PACKAGE/$TARBALL"
12 TAGS="python"
14 DEPENDS="python libnotify"
15 BUILD_DEPENDS="python-dev libnotify-dev pygtk pygtk-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i 's/, attach//;s/ attach[^;]*//;/GtkWidget .attach/d' src/pynotify.c
28 ./configure \
29 --prefix=/usr \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$DESTDIR install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr
39 cp -a $install/usr/lib $fs/usr
40 cp -a $install/usr/share $fs/usr
41 }