mirror of
https://github.com/termux-pacman/glibc-packages.git
synced 2024-11-13 13:59:21 +00:00
ac61c864ff
gpkg/assimp: rebuilding gpkg/libnghttp2 gpkg/python-pip gpkg/vulkan-headers gpkg/vulkan-icd-loader gpkg/vulkan-tools
54 lines
2.0 KiB
Bash
54 lines
2.0 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://pip.pypa.io/
|
|
TERMUX_PKG_DESCRIPTION="The PyPA recommended tool for installing Python packages"
|
|
TERMUX_PKG_LICENSE="MIT"
|
|
TERMUX_PKG_MAINTAINER="@termux-pacman"
|
|
TERMUX_PKG_VERSION="24.3.1"
|
|
TERMUX_PKG_SRCURL=https://github.com/pypa/pip/archive/$TERMUX_PKG_VERSION.tar.gz
|
|
TERMUX_PKG_SHA256=1349240eff5fd44f4b9d834d503d87505a6cd0a8ab022f3f1665181d6a719a73
|
|
TERMUX_PKG_DEPENDS="gcc-glibc, make-glibc, pkgconf-glibc, python-glibc (>= 3.11.1-1)"
|
|
TERMUX_PKG_ANTI_BUILD_DEPENDS="gcc-glibc"
|
|
TERMUX_PKG_BREAKS="python-glibc (<< 3.11.1-1)"
|
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_PYTHON_COMMON_DEPS="wheel, setuptools==67.8, docutils, myst_parser, sphinx_copybutton, sphinx_inline_tabs, sphinxcontrib.towncrier, completion"
|
|
|
|
termux_step_post_make_install() {
|
|
( # creating pip documentation
|
|
cd docs/
|
|
python pip_sphinxext.py
|
|
sphinx-build -b man -d build/doctrees/man man build/man -c html
|
|
)
|
|
|
|
install -vDm 644 LICENSE.txt -t "$TERMUX_PREFIX/share/licenses/python-pip/"
|
|
install -vDm 644 docs/build/man/*.1 -t "$TERMUX_PREFIX/share/man/man1/"
|
|
install -vDm 644 {NEWS,README}.rst -t "$TERMUX_PREFIX/share/doc/python-pip/"
|
|
|
|
"$TERMUX_PREFIX"/bin/pip completion --bash | install -vDm 644 /dev/stdin "$TERMUX_PREFIX"/share/bash-completion/completions/pip
|
|
"$TERMUX_PREFIX"/bin/pip completion --fish | install -vDm 644 /dev/stdin "$TERMUX_PREFIX"/share/fish/vendor_completions.d/pip.fish
|
|
}
|
|
|
|
termux_step_create_debscripts() {
|
|
# disable pip update notification
|
|
cat <<- POSTINST_EOF > ./postinst
|
|
#!$TERMUX_PREFIX_CLASSICAL/bin/bash
|
|
echo "pip setup..."
|
|
LD_PRELOAD="" $TERMUX_PREFIX/bin/pip config set --global global.disable-pip-version-check true
|
|
exit 0
|
|
POSTINST_EOF
|
|
if [ "$TERMUX_PACKAGE_FORMAT" = "pacman" ]; then
|
|
echo "post_install" > postupg
|
|
fi
|
|
|
|
# deleting conf of pip while removing it
|
|
cat <<- PRERM_EOF > ./prerm
|
|
#!$TERMUX_PREFIX_CLASSICAL/bin/bash
|
|
if [ -d $TERMUX_PREFIX/etc/pip.conf ]; then
|
|
echo "Removing the pip setting..."
|
|
rm -fr $TERMUX_PREFIX/etc/pip.conf
|
|
fi
|
|
exit 0
|
|
PRERM_EOF
|
|
|
|
chmod 0755 postinst prerm
|
|
}
|