termux-packages/packages/seafile-client/build.sh
Butta b6c702b46e protobuf: update from 3.12.4 to 3.13.0 and bump libgrpc, librotobuf-c, and mosh dependent packages
parted: update from 3.2 to 3.3

rhash: update from 1.3.9 to 1.4.0

seafile-client: update from 7.0.8 to 7.0.9

sensible-utils: update from 0.0.12 to 0.0.13

util-linux: update from 2.35.2 to 2.36
2020-08-21 15:45:26 +05:30

29 lines
940 B
Bash

TERMUX_PKG_HOMEPAGE=http://seafile.com
TERMUX_PKG_DESCRIPTION="Seafile is a file syncing and sharing software with file encryption and group sharing"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_VERSION=7.0.9
TERMUX_PKG_SRCURL=https://github.com/haiwen/seafile/archive/v${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=f127b735e5d4cbd7e692d52eda54113f1a4ca31bd8328fbccf01a5462bbba5e8
TERMUX_PKG_DEPENDS="ccnet, libcurl, python"
TERMUX_PKG_BREAKS="seafile-client-dev"
TERMUX_PKG_REPLACES="seafile-client-dev"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
./autogen.sh
export CPPFLAGS="-I$TERMUX_PKG_SRCDIR/lib $CPPFLAGS"
}
termux_step_post_configure() {
# the package has trouble to prepare some headers
cd $TERMUX_PKG_SRCDIR/lib
python $TERMUX_PREFIX/bin/searpc-codegen.py $TERMUX_PKG_SRCDIR/lib/rpc_table.py
}
termux_step_create_debscripts() {
cat <<- EOF > ./postinst
#!$TERMUX_PREFIX/bin/sh
pip install future
EOF
}