void-packages/srcpkgs/gupnp-dlna/template

37 lines
1.0 KiB
Bash

# Template file for 'gupnp-dlna'
pkgname=gupnp-dlna
version=0.12.0
revision=1
build_style=meson
build_helper="gir"
configure_args="$(vopt_bool gir introspection)"
hostmakedepends="pkg-config $(vopt_if vala vala)"
makedepends="gst-plugins-base1-devel libxml2-devel $(vopt_if vala vala)"
short_desc="GUPnP DLNA"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="http://gupnp.org/"
changelog="https://gitlab.gnome.org/GNOME/gupnp-dlna/-/raw/master/NEWS"
distfiles="${GNOME_SITE}/gupnp-dlna/${version%.*}/gupnp-dlna-${version}.tar.xz"
checksum=3d53b96f85bc5628d33e367ec9bf2adb38ef2b34d7ad0434a6ba0cf4ad9048e6
# Package build options
build_options="gir vala"
build_options_default="gir vala"
gupnp-dlna-devel_package() {
depends="gst-plugins-base1-devel ${sourcepkg}>=${version}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
if [ "$build_option_gir" ]; then
vmove usr/share/gir-1.0
fi
if [ "$build_option_vala" ]; then
vmove usr/share/vala
fi
vmove usr/lib/pkgconfig
}
}