mirror of
https://github.com/termux/termux-packages.git
synced 2024-11-13 14:09:19 +00:00
20 lines
534 B
Bash
Executable File
20 lines
534 B
Bash
Executable File
#!/bin/bash
|
|
|
|
. $(dirname "$(realpath "$0")")/properties.sh
|
|
source "$TERMUX_PREFIX/bin/termux-setup-package-manager" || true
|
|
|
|
if [ "$TERMUX_APP_PACKAGE_MANAGER" = "apt" ]; then
|
|
echo "Error: apt does not have glibc packages"
|
|
exit 1
|
|
elif [ "$TERMUX_APP_PACKAGE_MANAGER" = "pacman" ]; then
|
|
if $(pacman-conf -r gpkg-dev &> /dev/null); then
|
|
pacman -Syu gpkg-dev --needed --noconfirm
|
|
else
|
|
echo "Error: no glibc packages repo found (only gpkg-dev at the moment)"
|
|
exit 1
|
|
fi
|
|
else
|
|
echo "Error: no package manager defined"
|
|
exit 1
|
|
fi
|