45 lines
1.3 KiB
Bash
45 lines
1.3 KiB
Bash
# Template file for 'libmediaart'
|
|
pkgname=libmediaart
|
|
version=1.9.6
|
|
revision=1
|
|
build_style=meson
|
|
build_helper="gir"
|
|
configure_args="$(vopt_bool gtk_doc)"
|
|
hostmakedepends="pkg-config intltool glib-devel $(vopt_if vala vala)
|
|
$(vopt_if gtk_doc gtk-doc)"
|
|
makedepends="libglib-devel gdk-pixbuf-devel $(vopt_if vala vala)"
|
|
short_desc="Media art extraction and cache management library"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="LGPL-2.1-or-later"
|
|
homepage="http://www.gnome.org/"
|
|
changelog="https://gitlab.gnome.org/GNOME/libmediaart/-/raw/master/NEWS"
|
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=c3bc5025d7db380587f9c8eb800c611f6b5a16d6b4b78fcff93f62876a677f17
|
|
|
|
# Package build options
|
|
build_options="gir vala gtk_doc"
|
|
build_options_default="gir vala"
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default+=" gtk_doc"
|
|
fi
|
|
|
|
libmediaart-devel_package() {
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
if [ "$build_option_gtk_doc" ]; then
|
|
vmove usr/share/gtk-doc
|
|
fi
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
if [ "$build_option_vala" ]; then
|
|
vmove usr/share/vala
|
|
fi
|
|
}
|
|
}
|