void-packages/srcpkgs/gdk-pixbuf/template

57 lines
1.6 KiB
Bash

# Template file for 'gdk-pixbuf'
pkgname=gdk-pixbuf
version=2.36.12
revision=1
build_style=gnu-configure
configure_args="$(vopt_enable gir introspection) --without-libjasper
--with-included-loaders=png --with-x11 gio_can_sniff=yes"
hostmakedepends="automake gettext-devel glib-devel libtool pkg-config
$(vopt_if gir 'gobject-introspection')"
makedepends="libX11-devel libglib-devel libpng-devel tiff-devel"
triggers="gtk-pixbuf-loaders"
short_desc="Image loading library for The GTK+ toolkit (v2)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://wiki.gnome.org/Projects/GdkPixbuf"
license="GPL-2.0-or-later"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
checksum=fff85cf48223ab60e3c3c8318e2087131b590fd6f1737e42cb3759a3b427a334
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
pre_configure() {
sed -i '/SUBDIRS/s/tests//' Makefile.am
autoreconf -fi
# Can't create loaders.cache with cross compiled modules
if [ -n "$CROSS_BUILD" ]; then
touch gdk-pixbuf/loaders.cache
fi
}
gdk-pixbuf-xlib_package() {
short_desc+=" - xlib rendering library"
pkg_install() {
vmove usr/lib/libgdk_pixbuf_xlib*.so.*
}
}
gdk-pixbuf-devel_package() {
depends="${makedepends} ${sourcepkg}-xlib>=${version}_${revision} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
vmove usr/include
vmove "usr/bin/*csource*"
vmove "usr/share/man/man1/*csource*"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
vmove usr/share/gtk-doc
}
}