wok-6.x view babl/receipt @ rev 24923

mutt: addgroup mail only when not already existing
author Hans-G?nter Theisgen
date Tue Apr 12 16:45:14 2022 +0100 (2022-04-12)
parents bc2b9d9bed6f
children
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|" | \
24 sort -Vr | sed q | xargs wget -O - 2>/dev/null | \
25 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 export CC=gcc-83
32 export CXX=g++-83
34 meson _build \
35 --prefix=/usr
36 ninja -C _build &&
37 ninja -C _build install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/lib
45 cp -a $install/usr/lib/*.so* $fs/usr/lib
46 cp -a $install/usr/lib/babl-* $fs/usr/lib
47 # rm $fs/usr/lib/babl-*/*.*a
48 }