# Template file for 'capnproto' pkgname=capnproto version=0.6.1 revision=4 wrksrc="${pkgname}-c++-${version}" build_style=gnu-configure short_desc="Cap'n Proto serialization/RPC system" maintainer="eater " license="MIT" homepage="https://capnproto.org" distfiles="${homepage}/capnproto-c++-${version}.tar.gz" checksum=8082040cd8c3b93c0e4fc72f2799990c72fdcf21c2b5ecdae6611482a14f1a04 if [ -n "$CROSS_BUILD" ]; then hostmakedepends+=" capnproto-devel" configure_args+=" --with-external-capnp" fi post_install() { vlicense LICENSE.txt } capnproto-devel_package() { short_desc+=" - development files" depends="${sourcepkg}>=${version}_${revision}" pkg_install() { vmove usr/include vmove usr/lib/*.a vmove usr/lib/*.la vmove /usr/lib/libkj.so vmove /usr/lib/libkj-test.so vmove /usr/lib/libkj-http.so vmove /usr/lib/libkj-async.so vmove /usr/lib/libcapnpc.so vmove /usr/lib/libcapnp.so vmove /usr/lib/libcapnp-rpc.so vmove /usr/lib/libcapnp-json.so vmove usr/lib/pkgconfig } }