wok-next view gtk2/receipt @ rev 21105
Small updates... "bzip2" and "cairo": follow "libpkg - pkg - pkg-dev" rule
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jan 04 17:29:48 2019 +0200 (2019-01-04) |
parents | e19ff076dc63 |
children | 1ff2f2b5df1d |
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="devel@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 COOKOPTS="force-arch" # different .pc
17 BUILD_DEPENDS="paper-icon-theme rsvg-convert optipng-static pngquant-static \
18 symlinks \
19 glib-dev atk-dev pango-dev cairo-dev gdk-pixbuf-dev cups-dev \
20 gobject-introspection-dev gtk-doc automake gettext-dev libxinerama-dev"
21 BUILD_DEPENDS="glib-dev atk-dev pango-dev cairo-dev gdk-pixbuf-dev cups-dev \
22 gobject-introspection-dev gtk-doc gettext-dev libxinerama-dev \
23 shared-mime-info-dev"
24 SPLIT="$PACKAGE-demo $PACKAGE $PACKAGE-dev"
26 compile_rules() {
27 # . $stuff/replace-icons-paper; cd $src
29 # find $src -type f -name 'Makefile.in' -exec sed -i 's|1.15|1.15.1|' '{}' \;
30 # or
31 # autoreconf -fi && # fix 'version mismatch' between 1.15 and 1.15.1
32 ./configure \
33 --enable-debug=no \
34 $CONFIGURE_ARGS &&
35 fix libtool &&
36 make $MAKEFLAGS $LIBTOOL &&
37 make install || return 1
39 ln -s /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
40 $install/etc/gtk-2.0/gdk-pixbuf.loaders
42 mkdir -p $install/usr/share/applications
43 cp $stuff/*.desktop $install/usr/share/applications
44 }
46 genpkg_rules() {
47 case $PACKAGE in
48 *-demo)
49 copy gtk-demo demo/ *.desktop
50 CAT="development|example code and demo"
51 DEPENDS="libcairo gdk-pixbuf glib gtk2 pango"
52 ;;
53 gtk2)
54 COOKOPTS="!menus"
55 copy @std @rm
56 DEPENDS="atk libcairo fontconfig gdk-pixbuf glib libcups pango \
57 libx11 libxext libxinerama libxrender"
58 CONFIG_FILES="/etc/gtk-2.0/im-multipress.conf"
59 SUGGESTED="cups gnutls libgcrypt libgpg-error"
60 ;;
61 *-dev)
62 copy @dev
63 DEPENDS="gtk2 \
64 atk-dev cairo-dev gdk-pixbuf-dev glib-dev pango-dev"
65 ;;
66 esac
67 }
69 post_install_gtk_() {
70 chroot "$1/" /usr/bin/gtk-query-immodules-2.0 --update-cache
71 }