wok-next view gtk2/receipt @ rev 21017

Some maintenance
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 16 16:46:05 2018 +0300 (2018-10-16)
parents
children d5aab818505e
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gtk2"
4 VERSION="2.24.31"
5 CATEGORY="x-window"
6 SHORT_DESC="The GIMP Toolkit"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://www.gtk.org/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/x/gtk2.html"
12 TARBALL="gtk+-$VERSION.tar.xz"
13 WGET_URL="$GNOME_MIRROR/gtk+/${VERSION:0:4}/$TARBALL"
15 BUILD_DEPENDS="paper-icon-theme rsvg-convert optipng-static pngquant-static \
16 symlinks \
17 glib-dev atk-dev pango-dev cairo-dev gdk-pixbuf-dev cups-dev \
18 gobject-introspection-dev gtk-doc automake gettext xorg-libXinerama-dev"
19 BUILD_DEPENDS="glib-dev atk-dev pango-dev cairo-dev gdk-pixbuf-dev cups-dev \
20 gobject-introspection-dev gtk-doc gettext xorg-libXinerama-dev \
21 shared-mime-info-dev"
22 SPLIT="$PACKAGE-demo $PACKAGE $PACKAGE-dev"
24 compile_rules() {
25 # . $stuff/replace-icons-paper; cd $src
27 # find $src -type f -name 'Makefile.in' -exec sed -i 's|1.15|1.15.1|' '{}' \;
28 # or
29 # autoreconf -fi && # fix 'version mismatch' between 1.15 and 1.15.1
30 ./configure \
31 --enable-debug=no \
32 $CONFIGURE_ARGS &&
33 fix libtool &&
34 make $MAKEFLAGS $LIBTOOL &&
35 make install || return 1
37 ln -s /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
38 $install/etc/gtk-2.0/gdk-pixbuf.loaders
40 mkdir -p $install/usr/share/applications
41 cp $stuff/*.desktop $install/usr/share/applications
42 }
44 genpkg_rules() {
45 case $PACKAGE in
46 *-demo)
47 copy gtk-demo demo/ *.desktop
48 CAT="development|example code and demo"
49 DEPENDS="cairo gdk-pixbuf glib gtk2 pango"
50 ;;
51 gtk2)
52 COOKOPTS="!menus"
53 copy @std @rm
54 DEPENDS="atk cairo fontconfig gdk-pixbuf glib libcups pango \
55 xorg-libX11 xorg-libXext xorg-libXinerama xorg-libXrender"
56 CONFIG_FILES="/etc/gtk-2.0/im-multipress.conf"
57 SUGGESTED="cups gnutls libgcrypt libgpg-error"
58 ;;
59 *-dev)
60 copy @dev
61 DEPENDS="gtk2 \
62 atk-dev cairo-dev gdk-pixbuf-dev glib-dev pango-dev"
63 ;;
64 esac
65 }
67 post_install_gtk_() {
68 chroot "$1/" /usr/bin/gtk-query-immodules-2.0 --update-cache
69 }