wok-next annotate libnotify/receipt @ rev 20428

Port changes from cooking wok: fake-sane, sane-backends.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Jan 24 13:17:46 2018 +0200 (2018-01-24)
parents f463de72afe3
children 0e7893ac206d
rev   line source
al@19804 1 # SliTaz package receipt v2.
erjo@1987 2
erjo@1987 3 PACKAGE="libnotify"
al@19804 4 VERSION="0.7.7"
erjo@1987 5 CATEGORY="utilities"
erjo@1987 6 SHORT_DESC="Notification library"
erjo@1987 7 MAINTAINER="fabrice.thiroux@free.fr"
pascal@14714 8 LICENSE="LGPL2.1"
al@19691 9 WEB_SITE="https://developer.gnome.org/libnotify/"
pankso@16379 10 HOST_ARCH="i486 arm"
erjo@1987 11
al@19691 12 TARBALL="$PACKAGE-$VERSION.tar.xz"
al@19691 13 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
al@19691 14
al@19691 15 BUILD_DEPENDS="gdk-pixbuf-dev glib-dev gtk+-dev gobject-introspection-dev \
al@19691 16 gtk-doc xmlto"
al@19691 17 BUILD_DEPENDS_arm="dbus-dev gtk+-dev dbus-glib dbus-glib-dev expat-dev"
al@19804 18 SPLIT="libnotify-dev"
pascal@14714 19
erjo@1987 20 # Rules to configure and make the package.
erjo@1987 21 compile_rules()
erjo@1987 22 {
devl547@17594 23 sed -e 's/REQ_GTK_VERSION=2.90/REQ_GTK_VERSION=2.24/' \
devl547@17594 24 -e 's/tests_modules="gtk+-3.0 >= $REQ_GTK_VERSION"/tests_modules="gtk+-2.0 >= $REQ_GTK_VERSION"/' \
devl547@17594 25 -i configure
al@19691 26
al@19804 27 ./configure $CONFIGURE_ARGS && make && make install
erjo@1987 28 }
erjo@1987 29
erjo@1987 30 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@1987 31 genpkg_rules()
erjo@1987 32 {
al@19804 33 case $PACKAGE in
al@19804 34 libnotify)
al@19804 35 copy @std #notify-send *.so*
al@19804 36 DEPENDS="gdk-pixbuf glib libffi libpng pcre zlib"
al@19804 37 ;;
al@19804 38 *-dev)
al@19804 39 copy @dev
al@19804 40 DEPENDS="libnotify gdk-pixbuf-dev glib-dev glibc-dev libffi-dev \
al@19804 41 libgio-dev libpng-dev pcre-dev zlib-dev"
al@19804 42 ;;
al@19804 43 esac
erjo@1987 44 }