void-packages/srcpkgs/babl/template

37 lines
1.1 KiB
Bash

# Template file for 'babl'
pkgname=babl
version=0.1.72
revision=1
build_style=meson
build_helper=gir
configure_args="-Dwith-docs=false"
hostmakedepends="pkg-config vala-devel gobject-introspection"
makedepends="lcms2-devel"
short_desc="Dynamic pixel format translation library"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-3.0-only"
homepage="http://gegl.org/babl/"
changelog="https://raw.githubusercontent.com/GNOME/babl/master/NEWS"
distfiles="https://download.gimp.org/pub/babl/${version%.*}/babl-${version}.tar.xz"
checksum=64e111097b1fa22f6c9bf044e341a9cd9ee1372c5acfa0b452e7a86fb37c6a42
case "$XBPS_TARGET_MACHINE" in
ppc64*) ;;
ppc*) broken="gegl segfaults in babl when building gimp";;
arm*|aarch64*)
configure_args+=" -Denable-sse=false -Denable-sse2=false
-Denable-sse3=false -Denable-sse4_1=false -Denable-avx2=false
-Denable-f16c=false -Denable-mmx=false";;
esac
babl-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove "usr/share/gir-*"
}
}