remove package: whatprovides

Deprecated in favor of apt-file. Whatprovides database will be removed from
server as well.

Archived repository is available here: https://github.com/termux/whatprovides
This commit is contained in:
Leonid Pliushch 2021-07-10 21:08:19 +03:00
parent ea3378500e
commit a821e94baa
No known key found for this signature in database
GPG Key ID: 45F2964132545795
1 changed files with 0 additions and 33 deletions

View File

@ -1,33 +0,0 @@
TERMUX_PKG_HOMEPAGE=https://github.com/termux/whatprovides
TERMUX_PKG_DESCRIPTION="Find out packages using specific files"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="Krishna kanhaiya @kcubeterm"
TERMUX_PKG_VERSION=2.2.2
TERMUX_PKG_SRCURL=https://github.com/termux/whatprovides/archive/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=bbe2e2bca5a1d43f09404378d9e9194cb18ebce8f68051090f21230c4f021862
TERMUX_PKG_DEPENDS="bash, coreutils, curl, gawk, gzip, sqlite"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_PLATFORM_INDEPENDENT=true
termux_step_create_debscripts() {
cat <<- EOF > ./postinst
#!${TERMUX_PREFIX}/bin/sh
mkdir -p "${TERMUX_PREFIX}/var/lib/whatprovides"
if [ ! -e "${TERMUX_PREFIX}/var/lib/whatprovides/whatprovides.db" ]; then
whatprovides -u || {
echo
echo "Failed to download database."
echo "Please run 'whatprovides -u' manually."
echo
}
fi
EOF
cat <<- EOF > ./prerm
#!${TERMUX_PREFIX}/bin/sh
if [ "\$1" != "remove" ]; then
exit 0
fi
rm -rf "${TERMUX_PREFIX}/var/lib/whatprovides"
EOF
}