wok-next view gtk3/receipt @ rev 21005

Small updates
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Oct 08 11:41:17 2018 +0300 (2018-10-08)
parents
children f48456621a9d
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gtk3"
4 VERSION="3.24.1"
5 CATEGORY="x-window"
6 SHORT_DESC="GNOME Toolkit 3" # it isn't GIMP Toolkit, don't try to convince me
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="LGPL2"
9 WEB_SITE="https://www.gtk.org/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/x/gtk3.html"
11 REPOLOGY="gtk3"
13 TARBALL="gtk+-$VERSION.tar.xz"
14 WGET_URL="$GNOME_MIRROR/gtk+/${VERSION%.*}/$TARBALL"
16 BUILD_DEPENDS="xorg-libSM-dev"
17 BUILD_DEPENDS="gettext wayland-protocols-dev wayland-dev glib-dev atk-dev \
18 pango-dev cairo-dev gdk-pixbuf-dev xorg-libXinerama-dev xorg-libXi-dev \
19 xorg-libXrandr-dev xorg-libXcomposite-dev xorg-libXdamage-dev libxkbcommon-dev \
20 mesa-dev libepoxy-dev at-spi2-atk-dev iso-codes-dev cups-dev rest-dev \
21 json-glib-dev gobject-introspection-dev colord-dev gtk-doc libxslt "
22 SPLIT="$PACKAGE-demo $PACKAGE-widget-factory $PACKAGE-icon-browser \
23 $PACKAGE-broadwayd $PACKAGE-dev $PACKAGE"
25 COOKOPTS="skip-log-errors" # Failed to open file ?./gdk.gresource.xml?: No such file or directory
27 compile_rules() {
28 ./configure \
29 --disable-debug \
30 --enable-xkb \
31 --enable-xinerama \
32 --enable-xrandr \
33 --enable-xfixes \
34 --enable-xcomposite \
35 --enable-xdamage \
36 --enable-x11-backend \
37 --enable-broadway-backend \
38 --enable-wayland-backend \
39 --enable-introspection \
40 --enable-colord \
41 --enable-man \
42 --with-x \
43 $CONFIGURE_ARGS &&
44 fix libtool &&
45 make &&
46 make install || return 1
48 cp -f $stuff/settings.ini $install/etc/gtk-3.0
49 # find $install -name '*.desktop' | xargs sed -i '/NoDisplay/d'
50 }
52 genpkg_rules() {
53 case $PACKAGE in
54 *-demo)
55 copy gtk3-demo* *Demo* *exampleapp*
56 rm -r $fs/usr/share/gtk-doc $fs/usr/share/man
57 CAT="development|example code and demo"
58 DEPENDS="cairo gdk-pixbuf glib gtk3 libepoxy libharfbuzz pango"
59 PROVIDE="gtk+3-demo"
60 ;;
61 *-widget-factory)
62 copy gtk3-widget*
63 rm -r $fs/usr/share/gtk-doc $fs/usr/share/man
64 CAT="development|widget factory"
65 DEPENDS="atk cairo gdk-pixbuf glib gtk3"
66 PROVIDE="gtk+3-widget-factory"
67 ;;
68 *-icon-browser)
69 copy gtk3-icon-browser gtk3-icon-browser.desktop
70 CAT="development|icon browser"
71 DEPENDS="glib gtk3"
72 PROVIDE="gtk+3-icon-browser"
73 ;;
74 *-broadwayd)
75 copy broadwayd
76 CAT="x-window|HTML5 GTK backend"
77 DEPENDS="cairo glib"
78 ;;
79 *-dev)
80 copy @dev *.its *.loc *.rng
81 DEPENDS="gtk3 \
82 at-spi2-atk-dev atk-dev cairo-dev fontconfig-dev gdk-pixbuf-dev \
83 glib-dev libepoxy-dev libxkbcommon-dev mesa-dev pango-dev \
84 wayland-dev wayland-protocols-dev xorg-libX11-dev \
85 xorg-libXcomposite-dev xorg-libXdamage-dev xorg-libXext-dev \
86 xorg-libXfixes-dev xorg-libXi-dev xorg-libXinerama-dev \
87 xorg-libXrandr-dev"
88 PROVIDE="gtk+3-dev"
89 ;;
90 *)
91 COOKOPTS="!menus"
92 copy etc/ bin/ themes/ *.so* *.xml @rm
93 DEPENDS="at-spi2-atk atk cairo colord fontconfig freetype \
94 gdk-pixbuf glib json-glib libcups libepoxy libharfbuzz \
95 libxkbcommon mesa-libwayland-egl pango rest wayland xorg-libX11 \
96 xorg-libXcomposite xorg-libXdamage xorg-libXext xorg-libXfixes \
97 xorg-libXi xorg-libXinerama xorg-libXrandr"
98 PROVIDE="gtk+3"
99 CONFIG_FILES="/etc/gtk-3.0/settings.ini"
100 ;;
101 esac
102 }
104 post_install_gtk3() {
105 chroot "$1/" /usr/bin/gtk-query-immodules-3.0 --update-cache
106 }