void-packages/srcpkgs/libsearpc/template

59 lines
1.4 KiB
Bash

# Template file for 'libsearpc'
# WARNING: upstream sometimes retag source. Wait for official announcement
pkgname=libsearpc
version=3.2.0
revision=2
build_style=gnu-configure
pycompile_module="pysearpc"
configure_args="PYTHON=python3 --disable-static --disable-compile-demo"
hostmakedepends="automake libtool pkg-config python3 glib-devel"
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://seafile.com"
distfiles="https://github.com/haiwen/libsearpc/archive/v${version}.tar.gz"
checksum=c479d85e405674c3450eac040abe143af5a9fafe7f1b74926e2a05280ab5420e
python_version=3
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="python3"
python_version=3
archs=noarch
pkg_install() {
vdoc AUTHORS
vdoc README.markdown
vmove usr/bin/searpc-codegen.py
}
}
libsearpc-python3_package() {
short_desc+=" - Python3 bindings"
pycompile_module="pysearpc"
depends="python3"
archs=noarch
pkg_install() {
vmove usr/lib/python3*
}
}