mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 10:52:57 +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'
|
# Template file for 'libmediaart'
|
||||||
pkgname=libmediaart
|
pkgname=libmediaart
|
||||||
version=1.9.4
|
version=1.9.4
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="$(vopt_if gir '--enable-introspection --enable-vala' '--disable-introspection --disable-vala')"
|
build_helper="gir"
|
||||||
hostmakedepends="pkg-config intltool glib-devel $(vopt_if gir 'gobject-introspection vala-devel')"
|
configure_args="$(vopt_enable gir introspection) $(vopt_enable vala)"
|
||||||
makedepends="libglib-devel gdk-pixbuf-devel"
|
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"
|
short_desc="Media art extraction and cache management library"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
||||||
license="LGPL-2.1"
|
license="LGPL-2.1-or-later"
|
||||||
homepage="http://www.gnome.org/"
|
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
|
checksum=a57be017257e4815389afe4f58fdacb6a50e74fd185452b23a652ee56b04813d
|
||||||
|
|
||||||
# Package build options
|
# Package build options
|
||||||
build_options="gir"
|
build_options="gir vala"
|
||||||
# Disable gir for cross builds.
|
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
build_options_default="gir"
|
x86_64-musl) build_options_default+=" gir vala" ;;
|
||||||
fi
|
*-musl) ;;
|
||||||
|
*) build_options_default+=" gir vala" ;;
|
||||||
|
esac
|
||||||
|
|
||||||
libmediaart-devel_package() {
|
libmediaart-devel_package() {
|
||||||
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
||||||
|
@ -30,6 +33,8 @@ libmediaart-devel_package() {
|
||||||
vmove usr/share/gtk-doc
|
vmove usr/share/gtk-doc
|
||||||
if [ "$build_option_gir" ]; then
|
if [ "$build_option_gir" ]; then
|
||||||
vmove usr/share/gir-1.0
|
vmove usr/share/gir-1.0
|
||||||
|
fi
|
||||||
|
if [ "$build_option_vala" ]; then
|
||||||
vmove usr/share/vala
|
vmove usr/share/vala
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue