wok-next view yad/receipt @ rev 20741

brscan: use SliTaz mirror as $WGET_URL
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue May 29 22:56:44 2018 +0300 (2018-05-29)
parents 3d5fe73ca04f
children e7a485521d6a
line source
1 # SliTaz package receipt v2.
3 PACKAGE="yad"
4 VERSION="0.39.0"
5 CATEGORY="utilities"
6 SHORT_DESC="Yet Another Dialog"
7 MAINTAINER="devl547@gmail.com"
8 LICENSE="GPL3"
9 WEB_SITE="https://sourceforge.net/projects/yad-dialog/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="$SF_MIRROR/yad-dialog/$TARBALL"
14 BUILD_DEPENDS="patch gtk+-dev gtk+3-dev webkitgtk-dev intltool"
15 SPLIT="yad-html:html yad-gtk3:gtk3"
17 compile_rules() {
18 case $SET in
19 '') Gtk=gtk2; Html=disable;;
20 html) Gtk=gtk2; Html=enable ;;
21 gtk3) Gtk=gtk3; Html=disable;;
22 esac
24 ./configure \
25 --enable-icon-browser \
26 --with-gtk=$Gtk \
27 --$Html-html \
28 $CONFIGURE_ARGS &&
29 make &&
30 make install
31 }
33 genpkg_rules() {
34 case $PACKAGE in
35 yad)
36 copy @std
37 CAT="utilities|GTK+2"
38 DEPENDS="atk cairo fontconfig freetype gdk-pixbuf glib gtk+ pango"
39 TAGS="gtk2"
40 ;;
41 yad-html)
42 copy @std
43 CAT="utilities|GTK+2, with HTML widget"
44 DEPENDS="atk cairo fontconfig freetype gdk-pixbuf glib gtk+ \
45 libsoup pango webkitgtk"
46 TAGS="gtk2"
47 PROVIDE="yad:webkitgtk"
48 ;;
49 yad-gtk3)
50 copy @std
51 CAT="utilities|GTK+3"
52 DEPENDS="atk cairo gdk-pixbuf glib gtk+3 pango"
53 TAGS="gtk3"
54 PROVIDE="yad:gtk+3"
55 ;;
56 esac
57 }