tergent: update to 1.0.0

This commit is contained in:
Leonid Pliushch 2020-11-22 21:51:54 +02:00
parent 0758008640
commit 9292f88b33

View File

@ -1,8 +1,26 @@
TERMUX_PKG_HOMEPAGE=https://github.com/aeolwyr/tergent TERMUX_PKG_HOMEPAGE=https://github.com/aeolwyr/tergent
TERMUX_PKG_DESCRIPTION="An ssh-agent implementation for Termux that uses Android Keystore as its backend" TERMUX_PKG_DESCRIPTION="A cryptoki/PKCS#11 library for Termux that uses Android Keystore as its backend"
TERMUX_PKG_LICENSE="Apache-2.0" TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_VERSION=0.1.1 TERMUX_PKG_VERSION=1.0.0
TERMUX_PKG_SRCURL=https://github.com/aeolwyr/tergent/archive/${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SRCURL=https://github.com/aeolwyr/tergent/archive/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=b16e5ba1a9333d6e14b94d8cf3f5ad27d3af124f6f2bbebb0eca62ac95783281 TERMUX_PKG_SHA256=0b59cf0ced3f693fb19396a986326963f3763e6bf65d3e56af0a03d206d69428
TERMUX_PKG_DEPENDS="termux-api" TERMUX_PKG_DEPENDS="termux-api"
TERMUX_PKG_BUILD_IN_SRC=true TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make_install() {
termux_setup_rust
cargo build --release
install -Dm600 -t $TERMUX_PREFIX/lib target/release/libtergent.so
}
termux_step_create_debscripts() {
cat <<- EOF > ./postinst
#!${TERMUX_PREFIX}/bin/sh
echo
echo "Tergent since v1.x is a library package."
echo
echo "Visit https://github.com/aeolwyr/tergent/blob/master/README.md for more information."
echo
exit 0
EOF
}