void-packages/srcpkgs/libsearpc/template

46 lines
1.1 KiB
Bash

# Template file for 'libsearpc'
pkgname=libsearpc
version=3.1.0
revision=1
build_style=gnu-configure
pycompile_module="pysearpc"
configure_args="--disable-static --disable-compile-demo"
hostmakedepends="automake libtool pkg-config python"
makedepends="libglib-devel jansson-devel"
short_desc="Seafile RPC library"
maintainer="yopito <pierre.bourgin@free.fr>"
license="LGPL-3.0-or-later, Apache-2.0"
homepage="https://github.com/haiwen/${pkgname}"
distfiles="https://github.com/haiwen/${pkgname}/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=cbd86d3c37b54ca2060ca537a07940fe3e98498abf345b2f3e1cec488230231a
pre_configure() {
./autogen.sh
}
post_install() {
vdoc AUTHORS
vdoc README.markdown
}
libsearpc-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}
libsearpc-codegen_package() {
short_desc+=" - code generator"
depends="python"
noarch=yes
pkg_install() {
vdoc AUTHORS
vdoc README.markdown
vmove usr/bin/searpc-codegen.py
}
}