54 lines
1.5 KiB
Bash
54 lines
1.5 KiB
Bash
# Template file for 'valadoc'
|
|
pkgname=valadoc
|
|
# Should be kept in sync with 'vala' (shared distfiles)
|
|
version=0.56.16
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="--with-cgraph=yes GI_GIRDIR=/usr/share/gir-1.0"
|
|
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/master/NEWS"
|
|
distfiles="${GNOME_SITE}/vala/${version%.*}/vala-${version}.tar.xz"
|
|
checksum=05487b5600f5d2f09e66a753cccd8f39c1bff9f148aea1b7774d505b9c8bca9b
|
|
|
|
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"
|
|
depends="vala>=${version}"
|
|
pkg_install() {
|
|
vmove "usr/lib/libvaladoc-*.so.*"
|
|
vmove "usr/lib/valadoc-${version%.*}"
|
|
vmove "usr/share/valadoc-${version%.*}"
|
|
}
|
|
}
|
|
|
|
valadoc-devel_package() {
|
|
depends="valadoc-${version}_${revision}
|
|
vala-devel>=${version}"
|
|
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"
|
|
}
|
|
}
|