mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-01 18:32:58 +02:00
libmediaart: enable gir, add vala build_option
This commit is contained in:
parent
95bca05827
commit
7e2420703f
1 changed files with 16 additions and 11 deletions
|
@ -1,24 +1,27 @@
|
|||
# Template file for 'libmediaart'
|
||||
pkgname=libmediaart
|
||||
version=1.9.4
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=gnu-configure
|
||||
configure_args="$(vopt_if gir '--enable-introspection --enable-vala' '--disable-introspection --disable-vala')"
|
||||
hostmakedepends="pkg-config intltool glib-devel $(vopt_if gir 'gobject-introspection vala-devel')"
|
||||
makedepends="libglib-devel gdk-pixbuf-devel"
|
||||
build_helper="gir"
|
||||
configure_args="$(vopt_enable gir introspection) $(vopt_enable vala)"
|
||||
hostmakedepends="pkg-config intltool glib-devel $(vopt_if vala vala)"
|
||||
makedepends="libglib-devel gdk-pixbuf-devel $(vopt_if vala vala)"
|
||||
short_desc="Media art extraction and cache management library"
|
||||
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
||||
license="LGPL-2.1"
|
||||
license="LGPL-2.1-or-later"
|
||||
homepage="http://www.gnome.org/"
|
||||
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
|
||||
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
||||
checksum=a57be017257e4815389afe4f58fdacb6a50e74fd185452b23a652ee56b04813d
|
||||
|
||||
# Package build options
|
||||
build_options="gir"
|
||||
# Disable gir for cross builds.
|
||||
if [ -z "$CROSS_BUILD" ]; then
|
||||
build_options_default="gir"
|
||||
fi
|
||||
build_options="gir vala"
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
x86_64-musl) build_options_default+=" gir vala" ;;
|
||||
*-musl) ;;
|
||||
*) build_options_default+=" gir vala" ;;
|
||||
esac
|
||||
|
||||
libmediaart-devel_package() {
|
||||
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
||||
|
@ -30,6 +33,8 @@ libmediaart-devel_package() {
|
|||
vmove usr/share/gtk-doc
|
||||
if [ "$build_option_gir" ]; then
|
||||
vmove usr/share/gir-1.0
|
||||
fi
|
||||
if [ "$build_option_vala" ]; then
|
||||
vmove usr/share/vala
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue