-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
59 lines (54 loc) · 1.73 KB
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Template file for 'vala'
pkgname=vala
# Should be kept in sync with 'valadoc' (shared distfiles)
version=0.56.16
revision=2
build_style=gnu-configure
configure_args="--disable-valadoc GI_GIRDIR=/usr/share/gir-1.0"
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=05487b5600f5d2f09e66a753cccd8f39c1bff9f148aea1b7774d505b9c8bca9b
shlib_provides="libvalaccodegen.so"
make_check=extended # take a lot of time
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
}
}