2018-02-07 12:29:01 +01:00
|
|
|
# Template file for 'libwaylandpp'
|
|
|
|
pkgname=libwaylandpp
|
2018-04-23 03:05:13 +02:00
|
|
|
version=0.2.3
|
2018-08-23 04:34:51 +02:00
|
|
|
revision=2
|
2018-02-07 12:29:01 +01:00
|
|
|
wrksrc="waylandpp-${version}"
|
2018-04-23 03:05:13 +02:00
|
|
|
configure_args="-DBUILD_SCANNER=TRUE -DBUILD_LIBRARIES=TRUE
|
|
|
|
-DBUILD_DOCUMENTATION=TRUE -DBUILD_EXAMPLES=TRUE
|
2018-02-07 12:29:01 +01:00
|
|
|
-DWAYLAND_SCANNERPP=/usr/bin/wayland-scanner++"
|
|
|
|
build_style=cmake
|
2018-04-23 03:05:13 +02:00
|
|
|
hostmakedepends="pkg-config doxygen graphviz"
|
2018-02-07 12:29:01 +01:00
|
|
|
makedepends="wayland-devel MesaLib-devel"
|
|
|
|
short_desc="Wayland C++ bindings"
|
|
|
|
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
|
|
|
license="MIT"
|
|
|
|
homepage="https://github.com/NilsBrause/waylandpp"
|
|
|
|
distfiles="https://github.com/NilsBrause/waylandpp/archive/${version}.tar.gz"
|
2018-04-23 03:05:13 +02:00
|
|
|
checksum=ebd4a8447bb65f288cad0e04538f6ec704e155213fc2b9cc1a851534c70aacac
|
|
|
|
subpackages="libwaylandpp-doc wayland-scanner++ libwaylandpp"
|
|
|
|
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
hostmakedepends+=" wayland-scanner++"
|
|
|
|
fi
|
2018-02-07 12:29:01 +01:00
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE
|
|
|
|
}
|
|
|
|
|
|
|
|
libwaylandpp-doc_package() {
|
|
|
|
noarch=yes
|
|
|
|
short_desc+=" - documentation"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/share/doc
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-23 03:05:13 +02:00
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-02-07 12:29:01 +01:00
|
|
|
libwaylandpp-devel_package() {
|
2018-08-23 04:34:51 +02:00
|
|
|
depends="libwaylandpp>=${version}_${revision} wayland-devel"
|
2018-02-07 12:29:01 +01:00
|
|
|
short_desc+=" - development files"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove "usr/lib/*.so"
|
2018-04-23 03:05:13 +02:00
|
|
|
vmove usr/share/man/man3
|
2018-02-07 12:29:01 +01:00
|
|
|
}
|
|
|
|
}
|