void-packages/srcpkgs/vala/template

50 lines
1.2 KiB
Bash

# Template file for 'vala'
pkgname=vala
version=0.42.4
revision=1
build_style=gnu-configure
configure_args="--disable-graphviz"
hostmakedepends="flex libxslt pkg-config automake libtool"
makedepends="libfl-devel libglib-devel"
checkdepends="dbus libgirepository-devel"
short_desc="Compiler for the GObject type system"
maintainer="Enno Boland <gottox@voidlinux.eu>"
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=b528906d080ac5b6043285a82c194c988e495c70da71ae19c1fc7811509f4f1e
shlib_provides="libvalaccodegen.so"
patch_args="-Np1"
# for valadoc
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" vala"
else
make_build_args="VALAC="${XBPS_BUILDDIR}/${pkgname}-${version}/compiler/valac""
fi
pre_configure() {
autoreconf -fi
}
libvala_package() {
short_desc+=" - shared library"
pkg_install() {
vmove usr/lib/*.so.*
}
}
vala-devel_package() {
depends="libglib-devel vala>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.so
vmove usr/share/aclocal
vmove usr/share/devhelp
vmove usr/share/vala
}
}