wok-next view yad/receipt @ rev 20332
Up exosip, httpfs-fuse, libvncserver, upx; add upx391 (for httpfs-fuse)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Nov 15 14:21:32 2017 +0200 (2017-11-15) |
parents | |
children | 3d5fe73ca04f |
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/"
10 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$SF_MIRROR/yad-dialog/$TARBALL"
15 BUILD_DEPENDS="patch gtk+-dev gtk+3-dev webkitgtk-dev intltool"
16 SPLIT="yad-html yad-gtk3"
18 compile_rules() {
19 sed -i '/^SUBDIRS/ s|.*|SUBDIRS = 16x16 48x48|' data/icons/Makefile.in
20 rm -rf $install-*
21 cp -a $src $src-h
22 cp -a $src $src-3
24 while read Pkg Src Gtk Html Install; do
25 title "Making $Pkg"
26 cd $Src
27 ./configure \
28 --enable-icon-browser \
29 --with-gtk=$Gtk \
30 --$Html-html \
31 $CONFIGURE_ARGS &&
32 make &&
33 make DESTDIR=$Install install || return 1
34 done <<EOT
35 yad $src gtk2 disable $install
36 yad-html $src-h gtk2 enable $install-h
37 yad-gtk3 $src-3 gtk3 disable $install-3
38 EOT
39 }
41 genpkg_rules() {
42 case $PACKAGE in
43 yad)
44 copy @std
45 CAT="utilities|GTK+2"
46 DEPENDS="atk cairo fontconfig freetype gdk-pixbuf glib gtk+ pango"
47 TAGS="gtk2"
48 ;;
49 yad-html)
50 install=$install-h copy @std
51 CAT="utilities|GTK+2, with HTML widget"
52 DEPENDS="atk cairo fontconfig freetype gdk-pixbuf glib gtk+ \
53 libsoup pango webkitgtk"
54 TAGS="gtk2"
55 PROVIDE="yad:webkitgtk"
56 ;;
57 yad-gtk3)
58 install=$install-3 copy @std
59 CAT="utilities|GTK+3"
60 DEPENDS="atk cairo gdk-pixbuf glib gtk+3 pango"
61 TAGS="gtk3"
62 PROVIDE="yad:gtk+3"
63 ;;
64 esac
65 }