wok annotate pidgin-libnotify/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (2022-05-21)
parents 8db481e72104
children 7dd01dedad38
rev   line source
erjo@4864 1 # SliTaz package receipt.
erjo@4864 2
erjo@4864 3 PACKAGE="pidgin-libnotify"
erjo@4864 4 VERSION="0.14"
erjo@4864 5 CATEGORY="network"
erjo@4864 6 SHORT_DESC="Notification interface for Pidgin."
erjo@4864 7 MAINTAINER="erjo@slitaz.org"
pascal@15091 8 LICENSE="GPL3"
erjo@4864 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
erjo@4864 10 WEB_SITE="http://gaim-libnotify.sourceforge.net/"
erjo@4897 11 WGET_URL="http://downloads.sourceforge.net/project/gaim-libnotify/$PACKAGE/$PACKAGE-$VERSION/$TARBALL"
erjo@4864 12
pascal@15091 13 DEPENDS="pidgin libnotify"
pascal@15091 14 BUILD_DEPENDS="intltool libpurple-dev libnotify-dev pidgin-dev libffi gtk+-dev"
pascal@15091 15
pascal@24361 16 # What is the latest version available today?
pascal@24361 17 current_version()
pascal@24361 18 {
pascal@24361 19 wget -O - https://sourceforge.net/projects/gaim-libnotify/files/pidgin-libnotify/ 2>/dev/null | \
pascal@24361 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24361 21 sed '/scope="row/!d;s|.*/pidgin-libnotify/pidgin-libnotify-||;s|/.*||;q'
pascal@24361 22 }
pascal@24361 23
erjo@4864 24 # Rules to configure and make the package.
erjo@4864 25 compile_rules()
erjo@4864 26 {
pascal@17600 27 sed -i '/notify_notification_new/s/, NULL,/,/' src/pidgin-libnotify.c
gokhlayeh@11573 28 ./configure $CONFIGURE_ARGS && make && make install
erjo@4864 29 }
erjo@4864 30
erjo@4864 31 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@4864 32 genpkg_rules()
erjo@4864 33 {
erjo@4864 34 mkdir -p $fs/usr/lib/purple-2
pascal@15091 35 cp -a $install/usr/lib/purple-2/*.so $fs/usr/lib/purple-2
erjo@4864 36 }
erjo@4864 37