48 lines
1.3 KiB
Bash
48 lines
1.3 KiB
Bash
# Template file for 'gdk-pixbuf'
|
|
pkgname=gdk-pixbuf
|
|
version=2.42.10
|
|
revision=2
|
|
build_style=meson
|
|
build_helper="gir"
|
|
configure_args="$(vopt_feature gir introspection) -Dpng=enabled
|
|
-Djpeg=enabled -Dtiff=enabled -Dinstalled_tests=false"
|
|
hostmakedepends="gettext-devel glib-devel pkg-config python3-docutils"
|
|
makedepends="libglib-devel libpng-devel tiff-devel libjpeg-turbo-devel
|
|
shared-mime-info"
|
|
depends="shared-mime-info"
|
|
short_desc="Image loading library for The GTK+ toolkit (v2)"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="https://wiki.gnome.org/Projects/GdkPixbuf"
|
|
distfiles="${GNOME_SITE}/gdk-pixbuf/${version%.*}/gdk-pixbuf-${version}.tar.xz"
|
|
checksum=ee9b6c75d13ba096907a2e3c6b27b61bcd17f5c7ebeab5a5b439d2f2e39fe44b
|
|
|
|
# Package build options
|
|
build_options="gir"
|
|
build_options_default="gir"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" gdk-pixbuf-devel"
|
|
fi
|
|
|
|
pre_configure() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
touch gdk-pixbuf/loaders.cache
|
|
fi
|
|
}
|
|
|
|
gdk-pixbuf-devel_package() {
|
|
depends="${makedepends} ${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
|
|
}
|
|
}
|