59 lines
1.7 KiB
Bash
59 lines
1.7 KiB
Bash
# Template file for 'vala'
|
|
pkgname=vala
|
|
# Should be kept in sync with 'valadoc' (shared distfiles)
|
|
version=0.54.6
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-valadoc"
|
|
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/master/NEWS"
|
|
distfiles="${GNOME_SITE}/vala/${version%.*}/vala-${version}.tar.xz"
|
|
checksum=49d60d96a3fdf6c4287397442bc6d6d95bf40aa7df678ee49128c4b11ba6e469
|
|
shlib_provides="libvalaccodegen.so"
|
|
make_check=extended
|
|
|
|
pre_configure() {
|
|
autoreconf -if
|
|
}
|
|
|
|
post_install() {
|
|
# remove the /usr/bin prefix from the vapigen variable
|
|
# so the package that use it fall into our wrapper.
|
|
# keep the binary versioned, we don't know the potential
|
|
# fallout from using the unversioned one
|
|
vsed -e "s|^vapigen=.*|vapigen=vapigen-${version%.*}|g" \
|
|
-i ${DESTDIR}/usr/lib/pkgconfig/vapigen-${version%.*}.pc
|
|
}
|
|
|
|
libvala_package() {
|
|
short_desc+=" - vala shared library"
|
|
pkg_install() {
|
|
vmove "usr/lib/libvala-*.so.*"
|
|
}
|
|
}
|
|
|
|
vala-devel_package() {
|
|
depends="libglib-devel vala-${version}_${revision}"
|
|
short_desc+=" - vala development files"
|
|
pkg_install() {
|
|
vmove "usr/lib/libvala-*.so"
|
|
vmove "usr/lib/pkgconfig/libvala*.pc"
|
|
vmove "usr/include/vala-*"
|
|
vmove "usr/share/vala/vapi/libvala-*.*"
|
|
vmove usr/share/aclocal
|
|
}
|
|
}
|
|
|
|
vala-doc_package() {
|
|
depends="vala-${version}_${revision}"
|
|
short_desc+=" - devhelp documentation"
|
|
pkg_install() {
|
|
vmove usr/share/devhelp
|
|
}
|
|
}
|