wok-next view gtk3/receipt @ rev 21031
Random updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Nov 03 15:42:26 2018 +0200 (2018-11-03) |
parents | f48456621a9d |
children | 5669e8b3be70 |
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-dev 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 ;;
60 *-widget-factory)
61 copy gtk3-widget*
62 rm -r $fs/usr/share/gtk-doc $fs/usr/share/man
63 CAT="development|widget factory"
64 DEPENDS="atk cairo gdk-pixbuf glib gtk3"
65 ;;
66 *-icon-browser)
67 copy gtk3-icon-browser gtk3-icon-browser.desktop
68 CAT="development|icon browser"
69 DEPENDS="glib gtk3"
70 ;;
71 *-broadwayd)
72 copy broadwayd
73 CAT="x-window|HTML5 GTK backend"
74 DEPENDS="cairo glib"
75 ;;
76 *-dev)
77 copy @dev *.its *.loc *.rng
78 DEPENDS="gtk3 \
79 at-spi2-atk-dev atk-dev cairo-dev fontconfig-dev gdk-pixbuf-dev \
80 glib-dev libepoxy-dev libxkbcommon-dev mesa-dev pango-dev \
81 wayland-dev wayland-protocols-dev xorg-libX11-dev \
82 xorg-libXcomposite-dev xorg-libXdamage-dev xorg-libXext-dev \
83 xorg-libXfixes-dev xorg-libXi-dev xorg-libXinerama-dev \
84 xorg-libXrandr-dev"
85 ;;
86 *)
87 COOKOPTS="!menus"
88 copy etc/ bin/ themes/ *.so* *.xml @rm
89 DEPENDS="at-spi2-atk atk cairo colord fontconfig freetype \
90 gdk-pixbuf glib json-glib libcups libepoxy libharfbuzz \
91 libxkbcommon mesa-libwayland-egl pango rest wayland xorg-libX11 \
92 xorg-libXcomposite xorg-libXdamage xorg-libXext xorg-libXfixes \
93 xorg-libXi xorg-libXinerama xorg-libXrandr"
94 CONFIG_FILES="/etc/gtk-3.0/settings.ini"
95 ;;
96 esac
97 }
99 post_install_gtk3() {
100 chroot "$1/" /usr/bin/gtk-query-immodules-3.0 --update-cache
101 }