wok view babl/receipt @ rev 24775
created recipes for jack1 and jack1-dev for use by older packages
author | Hans-G?nter Theisgen |
---|---|
date | Sat Mar 19 17:41:14 2022 +0100 (2022-03-19) |
parents | bc2b9d9bed6f |
children | b81ceff0b056 |
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 }