Will it work for Termux?
This commit is contained in:
parent
8652fdb570
commit
24cafb0a84
3 changed files with 29 additions and 21 deletions
|
@ -26,6 +26,10 @@ available_pkgbuild() {
|
|||
true
|
||||
}
|
||||
|
||||
available_Tapt() {
|
||||
[ -f /data/data/com.termux/files/usr/bin/apt ]
|
||||
}
|
||||
|
||||
# Update the database
|
||||
update_Rpacman() {
|
||||
sudo pacman -Syu --noconfirm
|
||||
|
@ -64,18 +68,8 @@ installed_pkgbuild() { # package
|
|||
# TODO Might need all the systems package too
|
||||
}
|
||||
|
||||
installed_Rapt() {
|
||||
STATUS=$(mktemp)
|
||||
LANG=C dpkg-query --status $1 &> $STATUS
|
||||
installed=0
|
||||
if [ $? == 0 ]; then
|
||||
cat $STATUS | grep '^Status:' | grep ' installed' --quiet
|
||||
if [ $? == 0 ]; then
|
||||
installed=1
|
||||
fi
|
||||
fi
|
||||
rm -f $STATUS > /dev/null
|
||||
return $installed
|
||||
installed_apt() { # package
|
||||
dpkg -s "$1"
|
||||
}
|
||||
|
||||
# Test if available in the repositories
|
||||
|
@ -101,6 +95,10 @@ installable_makepkg() {
|
|||
installable_aur
|
||||
}
|
||||
|
||||
installable_apt() {
|
||||
apt-cache show "$1" &> /dev/null
|
||||
}
|
||||
|
||||
# Tell if it hadles mutiple argument for install
|
||||
|
||||
multiinstall_pacman() {
|
||||
|
@ -125,10 +123,14 @@ install_Ryay() {
|
|||
yay -S --needed --noconfirm $@
|
||||
}
|
||||
|
||||
install_Rapt() {
|
||||
install_Tapt() {
|
||||
apt install -y $@
|
||||
}
|
||||
|
||||
install_Rapt() {
|
||||
sudo apt install -y $@
|
||||
}
|
||||
|
||||
install_Rpip() {
|
||||
sudo pip install $@
|
||||
}
|
||||
|
@ -223,6 +225,7 @@ addUserInstallers() {
|
|||
addInstaller Umakepkg
|
||||
addInstaller Upip
|
||||
addInstaller Upkgbuild
|
||||
addInstaller Tapt # Termux
|
||||
}
|
||||
|
||||
# Installers that install with the system package manager
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue