void-packages/srcpkgs/vala/template

44 lines
1.2 KiB
Bash

# Template file for 'vala'
pkgname=vala
version=0.40.9
revision=1
build_style=gnu-configure
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://live.gnome.org/Vala"
changelog="https://raw.githubusercontent.com/GNOME/vala/0.40/NEWS"
distfiles="${GNOME_SITE}/vala/${version%.*}/vala-${version}.tar.xz"
checksum=c7ff0480779b2d78d6ff78f5fd165b3ba972e4fa9e9da1b411ff4375a78c6a7b
pre_configure() {
# https://gitlab.gnome.org/GNOME/vala/issues/596
# http://www.linuxfromscratch.org/blfs/view/svn/general/vala.html
sed -i '115d; 121,137d; 139,140d' configure.ac
sed -i '/libvaladoc/d; /valadoc/d' Makefile.am
sed -i '/valadoc.1/d' doc/Makefile.am
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
}
}