48 lines
1.3 KiB
Bash
48 lines
1.3 KiB
Bash
|
# Template file for 'libwaylandpp'
|
||
|
#
|
||
|
# keep this package version in sync with wayland-scanner++, we need to separate
|
||
|
# wayland-scanner++ from the rest of the package because it is required
|
||
|
# by the package itself to cross-compile
|
||
|
pkgname=libwaylandpp
|
||
|
version=0.2.2
|
||
|
revision=1
|
||
|
wrksrc="waylandpp-${version}"
|
||
|
configure_args="
|
||
|
-DBUILD_SCANNER=FALSE
|
||
|
-DBUILD_LIBRARIES=TRUE
|
||
|
-DBUILD_DOCUMENTATION=TRUE
|
||
|
-DBUILD_EXAMPLES=TRUE
|
||
|
-DWAYLAND_SCANNERPP=/usr/bin/wayland-scanner++"
|
||
|
build_style=cmake
|
||
|
hostmakedepends="pkg-config doxygen graphviz wayland-scanner++"
|
||
|
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"
|
||
|
checksum=e0c9012f3a5fb69922d5ecabdfbef739f1e0db3e68048b3f63537468ad5c4acd
|
||
|
|
||
|
post_install() {
|
||
|
vlicense LICENSE
|
||
|
}
|
||
|
|
||
|
libwaylandpp-doc_package() {
|
||
|
noarch=yes
|
||
|
short_desc+=" - documentation"
|
||
|
pkg_install() {
|
||
|
vmove usr/share/doc
|
||
|
}
|
||
|
}
|
||
|
|
||
|
libwaylandpp-devel_package() {
|
||
|
depends="libwaylandpp>=${version}_${revision}"
|
||
|
short_desc+=" - development files"
|
||
|
pkg_install() {
|
||
|
vmove usr/include
|
||
|
vmove usr/lib/pkgconfig
|
||
|
vmove "usr/lib/*.so"
|
||
|
vmove "usr/share/man/man3/*.3"
|
||
|
}
|
||
|
}
|