void-packages/srcpkgs/gsound/template

44 lines
1.2 KiB
Bash

# Template file for 'gsound'
pkgname=gsound
version=1.0.3
revision=1
build_helper="gir"
build_style=meson
configure_args="-Dintrospection=$(vopt_if gir true false)
-Denable_vala=$(vopt_if vala true false)
-Dgtk_doc=$(vopt_if gtk_doc true false)"
hostmakedepends="pkg-config intltool glib-devel $(vopt_if vala 'vala')
$(vopt_if gtk_doc gtk-doc)"
makedepends="libcanberra-devel vala"
short_desc="Small library for playing system sounds"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://wiki.gnome.org/Projects/GSound"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=ca2d039e1ebd148647017a7f548862350bc9af01986d39f10cfdc8e95f07881a
build_options="gir vala gtk_doc"
build_options_default="gir vala"
if [ ! "$CROSS_BUILD" ]; then
build_options_default+=" gtk_doc"
fi
gsound-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
}
}