wok annotate gdk-pixbuf/receipt @ rev 24541
kfilemetadata: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 23 17:37:38 2022 +0000 (2022-02-23) |
parents | 7757b63c231b |
children | 01627c411095 |
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 |
pascal@24072 | 26 current_version() |
pascal@24072 | 27 { |
pascal@24072 | 28 wget -O - $GNOME_MIRROR/$PACKAGE/$(wget -O - $GNOME_MIRROR/$PACKAGE 2>/dev/null | \ |
pascal@24072 | 29 sed '/href="[0-9]/!d;s|.*href="||;s|/" .*||' | sort -Vr | sed q) 2>/dev/null | \ |
pascal@24072 | 30 sed "/href=\"$PACKAGE-[0-9]/!d;s|.*$PACKAGE-||;s|.[a-z].*||" | sort -Vr | sed q |
pascal@24072 | 31 } |
pascal@24072 | 32 |
slaxemulator@6630 | 33 # Rules to configure and make the package. |
slaxemulator@6630 | 34 compile_rules() |
slaxemulator@6630 | 35 { |
pankso@16131 | 36 case "$ARCH" in |
pankso@16131 | 37 arm) echo "gio_can_sniff=yes" > arm.cache ;; |
pankso@16131 | 38 esac |
Hans-G?nter@23040 | 39 ./configure \ |
Hans-G?nter@23040 | 40 --disable-glibtest \ |
Hans-G?nter@23040 | 41 --without-libjasper \ |
Hans-G?nter@23040 | 42 --with-x11 \ |
pankso@16131 | 43 $CONFIGURE_ARGS $ARCH_ARGS && |
Hans-G?nter@23040 | 44 make && |
Hans-G?nter@23040 | 45 make install |
slaxemulator@6630 | 46 } |
slaxemulator@6630 | 47 |
slaxemulator@6630 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@6630 | 49 genpkg_rules() |
slaxemulator@6630 | 50 { |
slaxemulator@6653 | 51 mkdir -p $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders |
Hans-G?nter@23040 | 52 |
Hans-G?nter@23040 | 53 cp -a $install/usr/bin $fs/usr |
pankso@12739 | 54 cp -a $install/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders/*.so \ |
Hans-G?nter@23040 | 55 $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders |
Hans-G?nter@23040 | 56 [ -d "$install/usr/lib/girepository-1.0" ] && |
Hans-G?nter@23040 | 57 cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib |
Hans-G?nter@23040 | 58 cp -a $install/usr/lib/*.so* $fs/usr/lib |
gokhlayeh@11958 | 59 touch $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache |
slaxemulator@6630 | 60 } |
slaxemulator@6630 | 61 |
slaxemulator@11166 | 62 # Pre and post install commands for Tazpkg. |
slaxemulator@6630 | 63 post_install() |
slaxemulator@6630 | 64 { |
al@18663 | 65 # Updating gdk pixbuf loaders cache file... |
al@18663 | 66 chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache |
slaxemulator@6630 | 67 } |