void-packages/srcpkgs/gsound/template

36 lines
1.1 KiB
Bash
Raw Normal View History

2015-03-24 13:20:59 +01:00
# Template file for 'gsound'
pkgname=gsound
2015-11-02 09:39:37 +01:00
version=1.0.2
revision=1
2015-03-24 13:20:59 +01:00
build_style=gnu-configure
build_options="gir"
2015-06-20 14:05:21 +02:00
configure_args="$(vopt_if gir '--enable-introspection --enable-vala' '--disable-introspection --disable-vala')
2015-03-24 13:20:59 +01:00
--disable-schemas-compile --enable-locations-compression --with-zoneinfo-dir=/usr/share/zoneinfo"
hostmakedepends="pkg-config intltool glib-devel $(vopt_if gir 'gobject-introspection vala-devel')"
makedepends="libcanberra-devel"
short_desc="Small library for playing system sounds"
maintainer="Enno Boland <gottox@voidlinux.eu>"
2015-03-24 13:20:59 +01:00
license="LGPL-2.1"
homepage="http://www.gnome.org/"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
2015-11-02 09:39:37 +01:00
checksum=bba8ff30eea815037e53bee727bbd5f0b6a2e74d452a7711b819a7c444e78e53
2015-03-24 13:20:59 +01:00
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
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"
vmove usr/share/gtk-doc
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
vmove usr/share/vala
fi
}
}