void-packages/srcpkgs/libsearpc/template

57 lines
1.4 KiB
Bash

# Template file for 'libsearpc'
# WARNING: upstream sometimes retag source. Wait for official announcement
pkgname=libsearpc
# floating tag 3.3-latest
version=3.3.0.20220902
revision=1
_gitrev=15f6f0b9f451b9ecf99dedab72e9242e54e124eb
build_style=gnu-configure
configure_args="--with-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/${_gitrev}.tar.gz"
checksum=694ab76ea0e3c0616a4c517fc6f264cc35679ed70a843c4e74e0b35b779def8d
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
pkg_install() {
vdoc AUTHORS
vdoc README.markdown
vmove usr/bin/searpc-codegen.py
}
}
libsearpc-python3_package() {
short_desc+=" - Python3 bindings"
depends="python3"
pkg_install() {
vmove usr/lib/python3*
}
}