59 lines
1.6 KiB
Bash
59 lines
1.6 KiB
Bash
# Template file for 'seafile-libclient'
|
|
# WARNING: upstream sometimes retag source. Wait for official announcement
|
|
pkgname=seafile-libclient
|
|
version=7.0.4
|
|
revision=1
|
|
_distname="${pkgname/-libclient/}"
|
|
wrksrc="${_distname}-${version}"
|
|
build_style=gnu-configure
|
|
configure_args="PYTHON=python3 --disable-static"
|
|
hostmakedepends="automake intltool libsearpc-codegen libtool pkg-config vala"
|
|
makedepends="libglib-devel libuuid-devel libsearpc-devel sqlite-devel
|
|
libevent-devel libcurl-devel"
|
|
short_desc="Cloud storage system - library"
|
|
maintainer="yopito <pierre.bourgin@free.fr>"
|
|
license="GPL-2.0-or-later" # Has openssl exception not yet present on SPDX
|
|
homepage="https://seafile.com"
|
|
distfiles="https://github.com/haiwen/seafile/archive/v${version}.tar.gz"
|
|
checksum=75f98e1c08939b933134fa998f21fafc208aa02d980f5b8624dbf02d7b0cae13
|
|
|
|
pre_configure() {
|
|
./autogen.sh
|
|
}
|
|
|
|
post_install() {
|
|
vdoc README.markdown
|
|
}
|
|
|
|
seafile-libclient-devel_package() {
|
|
short_desc="Cloud storage system - development files"
|
|
depends="seafile-libclient>=${version}_${revision} glib-devel libsearpc-devel jansson-devel"
|
|
pkg_install() {
|
|
vdoc README.markdown
|
|
vmove usr/include
|
|
vmove usr/lib/*.so
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|
|
|
|
seafile-libclient-python3_package() {
|
|
short_desc="Cloud storage system - Python3 bindings"
|
|
pycompile_module="seafile"
|
|
depends="libsearpc-python3"
|
|
archs=noarch
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|
|
|
|
seafile-cli_package() {
|
|
short_desc="Cloud storage system - client CLI"
|
|
depends="seafile-libclient-python3 ${sourcepkg}>=${version}_${revision}"
|
|
python_version=3
|
|
archs=noarch
|
|
pkg_install() {
|
|
vmove usr/bin/seaf-cli
|
|
vmove usr/share/man/man1/seaf-cli.1
|
|
}
|
|
}
|