wok view babl/receipt @ rev 24614

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 06 21:04:14 2022 +0000 (2022-03-06)
parents 1f133ca0ddf5
children aba2c5ca9a66
line source
1 # SliTaz package receipt.
3 PACKAGE="babl"
4 VERSION="0.1.88"
5 CATEGORY="system-tools"
6 SHORT_DESC="Pixel format translation library."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="LGPL3"
9 WEB_SITE="https://gegl.org/babl/"
11 TARBALL="$PACKAGE-$VERSION.tar.xz"
12 WGET_URL="https://download.gimp.org/pub/$PACKAGE/${VERSION%.*}/$TARBALL"
14 DEPENDS="gcc83-lib-base gobject-introspection lcms2"
15 BUILD_DEPENDS="gcc83 gobject-introspection-dev lcms2-dev meson ninja"
17 HOST_ARCH="i486 arm"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://download.gimp.org/pub/$PACKAGE/ 2>/dev/null | \
23 sed "/latest/d;/\[DIR/!d;s|.*href=.\\(.*\\)/.*\".*|https://download.gimp.org/pub/$PACKAGE/\\1|" | sort -Vr | sed q > /tmp/url$$
24 cat /tmp/url$$ | xargs wget -O - 2>/dev/null | \
25 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
26 rm -f /tmp/url$$
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 export CC=gcc-83
33 export CXX=g++-83
35 meson _build \
36 --prefix=/usr
37 ninja -C _build &&
38 ninja -C _build install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib
46 cp -a $install/usr/lib/*.so* $fs/usr/lib
47 cp -a $install/usr/lib/babl-* $fs/usr/lib
48 # rm $fs/usr/lib/babl-*/*.*a
49 }