void-packages/srcpkgs/vala/template

48 lines
1.2 KiB
Bash

# Template file for 'vala'
pkgname=vala
version=0.42.2
revision=1
patch_args="-Np1"
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=9e89aa42152b1cef551568f827aa2deea2a9b5487d78c91474c8617b618e5f07
# 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
}
}