wok annotate gdk-pixbuf/receipt @ rev 23630
updated sarg and sarg-php (2.3.11 -> 2.4.0)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Apr 17 08:01:58 2020 +0100 (2020-04-17) |
parents | a78610b2eb47 |
children | 5d79829fa876 |
rev | line source |
---|---|
slaxemulator@6630 | 1 # SliTaz package receipt. |
slaxemulator@6630 | 2 |
slaxemulator@6630 | 3 PACKAGE="gdk-pixbuf" |
devl547@17631 | 4 VERSION="2.31.1" |
slaxemulator@6630 | 5 CATEGORY="x-window" |
Hans-G?nter@23040 | 6 SHORT_DESC="An image loading library for gtk2." |
slaxemulator@6630 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15000 | 8 LICENSE="GPL2" |
Hans-G?nter@23040 | 9 WEB_SITE="https://www.gtk.org/" |
Hans-G?nter@23040 | 10 |
pankso@12739 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
yuripourre@16873 | 12 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL" |
Hans-G?nter@23040 | 13 |
Hans-G?nter@23040 | 14 DEPENDS="glib jpeg libgio libpng shared-mime-info tiff xorg-libX11 zlib" |
Hans-G?nter@23040 | 15 BUILD_DEPENDS="glib-dev jbigkit jpeg-dev libgio-dev libpng-dev |
Hans-G?nter@23040 | 16 shared-mime-info-dev tiff-dev xorg-libX11-dev zlib-dev" |
Hans-G?nter@23040 | 17 |
pankso@16131 | 18 HOST_ARCH="i486 arm" |
pankso@10350 | 19 |
pankso@16131 | 20 # Handle cross compilation |
pankso@16131 | 21 case "$ARCH" in |
pankso@16131 | 22 i?86) BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev" ;; |
pankso@16131 | 23 arm) ARCH_ARGS="--enable-introspection=no --cache-file=arm.cache" ;; |
pankso@16131 | 24 esac |
slaxemulator@6630 | 25 |
slaxemulator@6630 | 26 # Rules to configure and make the package. |
slaxemulator@6630 | 27 compile_rules() |
slaxemulator@6630 | 28 { |
pankso@16131 | 29 case "$ARCH" in |
pankso@16131 | 30 arm) echo "gio_can_sniff=yes" > arm.cache ;; |
pankso@16131 | 31 esac |
Hans-G?nter@23040 | 32 ./configure \ |
Hans-G?nter@23040 | 33 --disable-glibtest \ |
Hans-G?nter@23040 | 34 --without-libjasper \ |
Hans-G?nter@23040 | 35 --with-x11 \ |
pankso@16131 | 36 $CONFIGURE_ARGS $ARCH_ARGS && |
Hans-G?nter@23040 | 37 make && |
Hans-G?nter@23040 | 38 make install |
slaxemulator@6630 | 39 } |
slaxemulator@6630 | 40 |
slaxemulator@6630 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6630 | 42 genpkg_rules() |
slaxemulator@6630 | 43 { |
slaxemulator@6653 | 44 mkdir -p $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders |
Hans-G?nter@23040 | 45 |
Hans-G?nter@23040 | 46 cp -a $install/usr/bin $fs/usr |
pankso@12739 | 47 cp -a $install/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/*.so \ |
Hans-G?nter@23040 | 48 $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders |
Hans-G?nter@23040 | 49 [ -d "$install/usr/lib/girepository-1.0" ] && |
Hans-G?nter@23040 | 50 cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib |
Hans-G?nter@23040 | 51 cp -a $install/usr/lib/*.so* $fs/usr/lib |
gokhlayeh@11958 | 52 touch $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache |
slaxemulator@6630 | 53 } |
slaxemulator@6630 | 54 |
slaxemulator@11166 | 55 # Pre and post install commands for Tazpkg. |
slaxemulator@6630 | 56 post_install() |
slaxemulator@6630 | 57 { |
al@18663 | 58 # Updating gdk pixbuf loaders cache file... |
al@18663 | 59 chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache |
slaxemulator@6630 | 60 } |