void-packages/srcpkgs/valadoc/template

53 lines
1.4 KiB
Bash

# Template file for 'valadoc'
pkgname=valadoc
# Should be kept in sync with 'vala' (shared distfiles)
version=0.44.3
revision=1
wrksrc="vala-${version}"
build_style=gnu-configure
configure_args="--with-cgraph=yes"
hostmakedepends="flex libxslt pkg-config automake libtool vala"
makedepends="libfl-devel libglib-devel graphviz-devel vala-devel"
checkdepends="dbus libgirepository-devel"
short_desc="Vala Documentation Tool"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://wiki.gnome.org/Projects/Vala"
changelog="https://gitlab.gnome.org/GNOME/vala/raw/0.42/NEWS"
distfiles="${GNOME_SITE}/vala/${version%.*}/vala-${version}.tar.xz"
checksum=8553b422484af88be1685d8b47f7b0df36ae4477c3e77e89ab22276ffed1eae9
pre_configure() {
autoreconf -if
}
do_install() {
for subdir in libvaladoc valadoc; do
make -C "${subdir}" DESTDIR="$DESTDIR" ${make_install_args} \
install
done
vman doc/valadoc.1
}
libvaladoc_package() {
short_desc+=" - shared library"
pkg_install() {
vmove "usr/lib/libvaladoc-*.so.*"
vmove usr/lib/valadoc
vmove usr/share/valadoc
}
}
valadoc-devel_package() {
depends="valadoc-${version}_${revision}
vala-devel-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove "usr/include/valadoc-*"
vmove "usr/lib/libvaladoc-*.so"
vmove "usr/lib/pkgconfig/valadoc-*.pc"
vmove "usr/share/vala/vapi/valadoc-*.deps"
vmove "usr/share/vala/vapi/valadoc-*.vapi"
}
}