void-packages/srcpkgs/vala/template
2019-01-22 12:34:14 -02:00

49 lines
1.2 KiB
Bash

# Template file for 'vala'
pkgname=vala
version=0.42.5
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.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=8c33b4abc0573d364781bbfe54a1668ed34956902e471191a31cf05dc87c6e12
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
}
}