-
Notifications
You must be signed in to change notification settings - Fork 2.1k
/
template
52 lines (47 loc) · 1.36 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
# Template file for 'libwaylandpp'
pkgname=libwaylandpp
version=0.2.8
revision=1
build_style=cmake
configure_args="-DBUILD_SCANNER=TRUE -DBUILD_LIBRARIES=TRUE
-DBUILD_DOCUMENTATION=TRUE -DBUILD_EXAMPLES=TRUE
-DWAYLAND_SCANNERPP=/usr/bin/wayland-scanner++"
hostmakedepends="pkg-config doxygen graphviz"
makedepends="wayland-devel MesaLib-devel pugixml-devel"
short_desc="Wayland C++ bindings"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/NilsBrause/waylandpp"
distfiles="https://github.com/NilsBrause/waylandpp/archive/${version}.tar.gz"
checksum=e7f486165d3568c3558b5c7099133aea4a285b82820eeafad329fc10271c654d
subpackages="libwaylandpp-doc wayland-scanner++ libwaylandpp-devel"
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" wayland-scanner++"
fi
post_install() {
vlicense LICENSE
}
libwaylandpp-doc_package() {
short_desc+=" - documentation"
pkg_install() {
vmove usr/share/doc
}
}
wayland-scanner++_package() {
short_desc="Tool to generate C++ proxy methods"
pkg_install() {
vmove usr/bin/wayland-scanner++
vmove usr/lib/pkgconfig/wayland-scanner++.pc
}
}
libwaylandpp-devel_package() {
depends="libwaylandpp>=${version}_${revision} wayland-devel"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/cmake
vmove "usr/lib/*.so"
vmove usr/share/man/man3
}
}