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