void-packages/srcpkgs/ccnet/template

48 lines
1.1 KiB
Bash

# Template file for 'ccnet'
pkgname=ccnet
version=6.1.7
revision=2
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="automake libsearpc-codegen libtool pkg-config vala"
makedepends="libevent-devel libsearpc-devel sqlite-devel"
short_desc="Seafile networking library"
maintainer="yopito <pierre.bourgin@free.fr>"
license="GPL-3.0-or-later"
homepage="https://github.com/haiwen/${pkgname}"
distfiles="https://github.com/haiwen/${pkgname}/archive/v${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=f9c81586181a8f331d3b00f334003e6b3f1af774f647cba30d5c9f9c546f7fce
pre_configure() {
./autogen.sh
}
post_install() {
vdoc "README.markdown"
vdoc "LICENSE.txt"
vdoc "HACKING"
}
ccnet-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision} ${makedepends}"
pkg_install() {
vdoc "README.markdown"
vdoc "LICENSE.txt"
vdoc "HACKING"
vmove "usr/include"
vmove "usr/lib/*.so"
vmove "usr/lib/pkgconfig"
}
}
ccnet-python_package() {
noarch=yes
pycompile_module="ccnet"
depends="ccnet"
short_desc="Python2 bindings"
pkg_install() {
vmove usr/lib/python2.7
}
}