49 lines
1.1 KiB
Bash
49 lines
1.1 KiB
Bash
# Template file for 'capnproto'
|
|
pkgname=capnproto
|
|
version=0.7.0
|
|
revision=2
|
|
wrksrc="${pkgname}-c++-${version}"
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake libtool"
|
|
short_desc="Cap'n Proto serialization/RPC system"
|
|
maintainer="eater <hello@eaterofco.de>"
|
|
license="MIT"
|
|
homepage="https://capnproto.org"
|
|
distfiles="${homepage}/capnproto-c++-${version}.tar.gz"
|
|
checksum=c9a4c0bd88123064d483ab46ecee777f14d933359e23bff6fb4f4dbd28b4cd41
|
|
|
|
CXXFLAGS="-std=c++14"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" capnproto-devel"
|
|
configure_args+=" --with-external-capnp"
|
|
fi
|
|
|
|
pre_configure() {
|
|
autoreconf -vfi
|
|
}
|
|
|
|
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
|
|
vmove usr/lib/cmake
|
|
}
|
|
}
|