Fixed file paths
This commit is contained in:
parent
78d393df55
commit
c302d2fb81
25 changed files with 9 additions and 337 deletions
|
@ -1,5 +0,0 @@
|
||||||
sapphic-package-manager (1.0) unstable; urgency=medium
|
|
||||||
|
|
||||||
* Initial release.
|
|
||||||
|
|
||||||
-- Penelope Gwen <penelope@pogmom.me> Thu, 07 Mar 2024 16:49:02 -0700
|
|
|
@ -1,10 +0,0 @@
|
||||||
./etc/bash_completion.d/spm
|
|
||||||
./usr/bin/spm
|
|
||||||
./usr/bin/spm_clean
|
|
||||||
./usr/bin/spm_search
|
|
||||||
./usr/bin/spm_upgrade
|
|
||||||
./usr/share/doc/spm/spm
|
|
||||||
./usr/share/doc/spm/spm_clean
|
|
||||||
./usr/share/doc/spm/spm_search
|
|
||||||
./usr/share/doc/spm/spm_upgrade
|
|
||||||
./lib/spm/version
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
sapphic-package-manager (1.1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* Fixed file paths
|
||||||
|
|
||||||
|
-- Penelope Gwen <support@pogmom.me> Thu, 07 Mar 2024 19:20:47 -0700
|
||||||
|
|
||||||
sapphic-package-manager (1.0) unstable; urgency=medium
|
sapphic-package-manager (1.0) unstable; urgency=medium
|
||||||
|
|
||||||
* Initial release.
|
* Initial release.
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
sapphic-package-manager
|
|
|
@ -1,2 +0,0 @@
|
||||||
sapphic-package-manager_1.0_all.deb utils optional
|
|
||||||
sapphic-package-manager_1.0_arm64.buildinfo utils optional
|
|
|
@ -1,2 +0,0 @@
|
||||||
misc:Depends=
|
|
||||||
misc:Pre-Depends=
|
|
|
@ -1 +0,0 @@
|
||||||
/etc/bash_completion.d/spm
|
|
|
@ -1,11 +0,0 @@
|
||||||
Package: sapphic-package-manager
|
|
||||||
Version: 1.0
|
|
||||||
Architecture: all
|
|
||||||
Maintainer: Penelope Gwen <support@pogmom.me>
|
|
||||||
Installed-Size: 32
|
|
||||||
Depends: apt, pipx, flatpak
|
|
||||||
Section: utils
|
|
||||||
Priority: optional
|
|
||||||
Multi-Arch: foreign
|
|
||||||
Homepage: https://github.com/SapphicLinux/Sapphic-Package-Manager
|
|
||||||
Description: frontend for managing apt, flatpak, and pipx packages
|
|
|
@ -1,13 +0,0 @@
|
||||||
2542b79651fab56d0ebfff75a0fdf7be lib/spm/version
|
|
||||||
50474ade5dfc6b6c1cac09ada3ed63b8 usr/bin/spm
|
|
||||||
5aa61b28baee26fe87e936c158191fdd usr/bin/spm_clean
|
|
||||||
31cb6b5602b78703f1a9eac22fe56306 usr/bin/spm_search
|
|
||||||
2f98097940e990dcb68147b1317ac614 usr/bin/spm_upgrade
|
|
||||||
3aed8034fb19279aaeefc612984bc61e usr/share/doc-base/sapphic-package-manager.sapphic-package-manager
|
|
||||||
cb1fb189ec32a1ac73ec0acb94b23241 usr/share/doc/sapphic-package-manager/README.Debian
|
|
||||||
d970c8b1ed9520bcb065d9b5604e25df usr/share/doc/sapphic-package-manager/changelog.gz
|
|
||||||
7ffe492cc720abd253b7b73d5b2c6a81 usr/share/doc/sapphic-package-manager/copyright
|
|
||||||
aef99edd535d2a1839f00dc6f0707085 usr/share/doc/spm/spm
|
|
||||||
8b843408b9ad9efa3b9b57e5eae8822d usr/share/doc/spm/spm_clean
|
|
||||||
0188b6286548590fcb32d12a0e4b2c7e usr/share/doc/spm/spm_search
|
|
||||||
c8a975d27aa8afc10556551dd0c77045 usr/share/doc/spm/spm_upgrade
|
|
|
@ -1 +0,0 @@
|
||||||
1.0
|
|
|
@ -1,45 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
_completions()
|
|
||||||
{
|
|
||||||
COMPREPLY+=("now")
|
|
||||||
COMPREPLY+=("tomorrow")
|
|
||||||
COMPREPLY+=("never")
|
|
||||||
}
|
|
||||||
|
|
||||||
COMMAND="${1}"
|
|
||||||
VERSION=$(cat /lib/spm/version)
|
|
||||||
|
|
||||||
|
|
||||||
upgrade() {
|
|
||||||
spm_upgrade $@
|
|
||||||
}
|
|
||||||
|
|
||||||
clean() {
|
|
||||||
spm_clean $@
|
|
||||||
}
|
|
||||||
|
|
||||||
search() {
|
|
||||||
spm_search $@
|
|
||||||
}
|
|
||||||
|
|
||||||
usage() {
|
|
||||||
echo "Sapphic Package Manager v${VERSION}"
|
|
||||||
cat ./usr/share/doc/spm/spm
|
|
||||||
sed -e 's/^/ /' ./usr/share/doc/spm/spm_upgrade
|
|
||||||
sed -e 's/^/ /' ./usr/share/doc/spm/spm_search
|
|
||||||
sed -e 's/^/ /' ./usr/share/doc/spm/spm_clean
|
|
||||||
}
|
|
||||||
|
|
||||||
case $COMMAND in
|
|
||||||
upgrade|search|clean )
|
|
||||||
shift 1;;&
|
|
||||||
upgrade )
|
|
||||||
upgrade $@;;
|
|
||||||
clean )
|
|
||||||
clean $@;;
|
|
||||||
search )
|
|
||||||
search $@;;
|
|
||||||
*|usage )
|
|
||||||
usage;;
|
|
||||||
esac
|
|
|
@ -1,46 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
isroot=false
|
|
||||||
issudo=false
|
|
||||||
if [ "$EUID" -eq 0 ];then isroot=true;fi
|
|
||||||
if [ -n "$SUDO_USER" ]; then issudo=true;fi
|
|
||||||
|
|
||||||
usage(){
|
|
||||||
echo -n "spm "
|
|
||||||
cat ./usr/share/doc/spm/spm_clean
|
|
||||||
}
|
|
||||||
|
|
||||||
yn=""
|
|
||||||
while getopts 'hYyNnafp' flag; do
|
|
||||||
case "${flag}" in
|
|
||||||
[YyNnafp] ) yn="${yn}${flag}" ;;
|
|
||||||
h|* ) usage;exit 1 ;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
|
|
||||||
if $isroot; then
|
|
||||||
echo -e "\033[1mUpdating apt sources...\033[0m"
|
|
||||||
apt -qqq update
|
|
||||||
echo -e "\033[1mThe following packages were automatically installed and are no longer required:\033[0m"
|
|
||||||
apt list '?garbage'
|
|
||||||
fi
|
|
||||||
echo -e "\033[1mUnable to preview unused flatpak packages\033[0m"
|
|
||||||
echo -e "\033[1mUnable to clean pipx packages\033[0m"
|
|
||||||
while true; do
|
|
||||||
if [ -z "$yn" ];then
|
|
||||||
echo "Yy: Clean all"
|
|
||||||
echo "Nn: Clean nothing"
|
|
||||||
if $isroot; then echo "Aa: Remove unused apt packages";fi
|
|
||||||
echo "Ff: Remove unused flatpak packages"
|
|
||||||
read -p "Clean packages? " yn
|
|
||||||
fi
|
|
||||||
case $yn in
|
|
||||||
*[Nn]* ) exit;;
|
|
||||||
*[Yya]* ) if $isroot; then echo -e "\033[1mRemoving unused apt packages...\033[0m";apt -y autoremove;fi;;&
|
|
||||||
*[Yyf]* ) if $issudo; then echo -e "\033[1mRemoving unused flatpak packages...\033[0m";sudo -u $SUDO_USER flatpak uninstall -y --unused;else flatpak uninstall -y --unused;fi;;&
|
|
||||||
*[p]* ) echo -e "\033[1mUnable to clean pipx packages\033[0m";;&
|
|
||||||
*[Yyafp]* ) break;;
|
|
||||||
* ) yn=""; echo "Please select a valid option.";;
|
|
||||||
esac
|
|
||||||
done
|
|
|
@ -1,48 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
isroot=false
|
|
||||||
issudo=false
|
|
||||||
if [ "$EUID" -eq 0 ];then isroot=true;fi
|
|
||||||
if [ -n "$SUDO_USER" ]; then issudo=true;suggestsudo="sudo ";fi
|
|
||||||
|
|
||||||
usage(){
|
|
||||||
echo -n "spm "
|
|
||||||
cat ./usr/share/doc/spm/spm_search
|
|
||||||
}
|
|
||||||
|
|
||||||
yn=""
|
|
||||||
while getopts 'hafp' flag; do
|
|
||||||
case "${flag}" in
|
|
||||||
[afp] ) yn="${yn}${flag}" ;;
|
|
||||||
h|* ) usage
|
|
||||||
exit 1 ;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
shift $((OPTIND - 1))
|
|
||||||
if [ -z "$yn" ];then
|
|
||||||
yn="Y"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -z "${1}" ];then
|
|
||||||
echo -e "\033[1mYou must specific a package name!\033[0m"
|
|
||||||
usage
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
case $yn in
|
|
||||||
*[Nn]* ) exit;;
|
|
||||||
*[Yya]* ) if $isroot; then
|
|
||||||
echo -e "\033[1mUpdating apt sources...\033[0m"
|
|
||||||
apt -qqq update
|
|
||||||
echo -e "\033[1mSearching for apt packages...\033[0m"
|
|
||||||
dpkg-query --show --showformat='${Package;-35}\t${Version;-15}\t${binary:Synopsis}\n' *"${1}"*
|
|
||||||
echo -e "\033[1mApt packages can be installed with \`\033[0m${suggestsudo}apt install [Package Name]\033[1m\`. A package's name can be found in the left column\033[0m"
|
|
||||||
fi;;&
|
|
||||||
*[Yyf]* ) echo -e "\033[1mSearching for flatpak packages...\033[0m"
|
|
||||||
flatpak search --columns=application,version,description ${1}
|
|
||||||
echo -e "\033[1mFlatpak packages can be installed with \`\033[0m${suggestsudo}flatpak install [Application ID]\033[1m\'. A package's Application ID can be found in the left column.\033[0m";;&
|
|
||||||
*[p]* ) echo -e "\033[1mUnable to search for pipx packages\033[0m";;&
|
|
||||||
*[Yyafp]* ) exit 0;;
|
|
||||||
* ) echo "bad search options";exit 1;;
|
|
||||||
esac
|
|
||||||
|
|
|
@ -1,57 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
isroot=false
|
|
||||||
issudo=false
|
|
||||||
if [ "$EUID" -eq 0 ];then isroot=true;fi
|
|
||||||
if [ -n "$SUDO_USER" ]; then issudo=true;fi
|
|
||||||
|
|
||||||
usage(){
|
|
||||||
echo -n "spm "
|
|
||||||
cat ./usr/share/doc/spm/spm_upgrade
|
|
||||||
}
|
|
||||||
|
|
||||||
yn=""
|
|
||||||
while getopts 'hYyNnafp' flag; do
|
|
||||||
case "${flag}" in
|
|
||||||
[YyNnafp] ) yn="${yn}${flag}" ;;
|
|
||||||
h|* ) usage
|
|
||||||
exit 1 ;;
|
|
||||||
esac
|
|
||||||
done
|
|
||||||
|
|
||||||
if $isroot; then
|
|
||||||
echo -e "\033[1mUpdating apt sources...\033[0m"
|
|
||||||
apt -qqq update
|
|
||||||
echo -e "\033[1mapt upgrade summary:\033[0m"
|
|
||||||
apt -qq upgrade --dry-run
|
|
||||||
fi
|
|
||||||
echo -e "\033[1mWill check and install updates for the following pipx packages:\033[0m"
|
|
||||||
if $issudo;then
|
|
||||||
sudo -u $SUDO_USER pipx list --short
|
|
||||||
else
|
|
||||||
pipx list --short
|
|
||||||
fi
|
|
||||||
echo -e "\033[1mFlatpak update summary:\033[0m"
|
|
||||||
if $issudo;then
|
|
||||||
sudo -u $SUDO_USER flatpak remote-ls --updates
|
|
||||||
else
|
|
||||||
flatpak remote-ls --updates
|
|
||||||
fi
|
|
||||||
while true; do
|
|
||||||
if [ -z "$yn" ];then
|
|
||||||
echo "Yy: Update All"
|
|
||||||
echo "Nn: Update nothing"
|
|
||||||
if $isroot; then echo "a: Upgrade apt packages";fi
|
|
||||||
echo "f: Update flatpak packages"
|
|
||||||
echo "p: Update pipx packages"
|
|
||||||
read -p "Install updates? " yn
|
|
||||||
fi
|
|
||||||
case $yn in
|
|
||||||
*[Nn]* ) exit;;
|
|
||||||
*[Yya]* ) if $isroot; then echo -e "\033[1mUpgrading apt packages...\033[0m";apt -y upgrade;fi;;&
|
|
||||||
*[Yyf]* ) if $issudo; then echo -e "\033[1mUpdating flatpak packages...\033[0m";sudo -u $SUDO_USER flatpak update -y;else flatpak update -y;fi;;&
|
|
||||||
*[Yyp]* ) if $issudo; then echo -e "\033[1mUpgrading pipx packages...\033[0m";sudo -u $SUDO_USER pipx upgrade-all;else pipx upgrade-all;fi;;&
|
|
||||||
*[Yyafp]* ) break;;
|
|
||||||
* ) yn=""; echo "Please select a valid option.";;
|
|
||||||
esac
|
|
||||||
done
|
|
|
@ -1,20 +0,0 @@
|
||||||
Document: sapphic-package-manager
|
|
||||||
Title: Debian sapphic-package-manager Manual
|
|
||||||
Author: <insert document author here>
|
|
||||||
Abstract: This manual describes what sapphic-package-manager is
|
|
||||||
and how it can be used to
|
|
||||||
manage online manuals on Debian systems.
|
|
||||||
Section: unknown
|
|
||||||
|
|
||||||
Format: debiandoc-sgml
|
|
||||||
Files: /usr/share/doc/sapphic-package-manager/sapphic-package-manager.sgml.gz
|
|
||||||
|
|
||||||
Format: postscript
|
|
||||||
Files: /usr/share/doc/sapphic-package-manager/sapphic-package-manager.ps.gz
|
|
||||||
|
|
||||||
Format: text
|
|
||||||
Files: /usr/share/doc/sapphic-package-manager/sapphic-package-manager.text.gz
|
|
||||||
|
|
||||||
Format: HTML
|
|
||||||
Index: /usr/share/doc/sapphic-package-manager/html/index.html
|
|
||||||
Files: /usr/share/doc/sapphic-package-manager/html/*.html
|
|
|
@ -1,6 +0,0 @@
|
||||||
sapphic-package-manager for Debian
|
|
||||||
---------------------------------
|
|
||||||
|
|
||||||
<Possible notes regarding this package - if none, delete this file.>
|
|
||||||
|
|
||||||
-- Penelope Gwen <support@pogmom.me> Sun, 03 Mar 2024 12:52:47 -0700
|
|
Binary file not shown.
|
@ -1,33 +0,0 @@
|
||||||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
|
||||||
Source: <url://example.com>
|
|
||||||
Upstream-Name: sapphic-package-manager
|
|
||||||
Upstream-Contact: <preferred name and address to reach the upstream project>
|
|
||||||
|
|
||||||
Files:
|
|
||||||
*
|
|
||||||
Copyright:
|
|
||||||
2024 Penelope Gwen <support@pogmom.me>
|
|
||||||
License: GPL-3.0+
|
|
||||||
|
|
||||||
Files:
|
|
||||||
debian/*
|
|
||||||
Copyright:
|
|
||||||
2024 Penelope Gwen <support@pogmom.me>
|
|
||||||
License: GPL-3.0+
|
|
||||||
|
|
||||||
License: GPL-3.0+
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
.
|
|
||||||
This package is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
.
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
Comment:
|
|
||||||
On Debian systems, the complete text of the GNU General
|
|
||||||
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
|
|
|
@ -1,6 +0,0 @@
|
||||||
Usage: spm command [options]
|
|
||||||
|
|
||||||
Sapphic Package Manager is not a package manager- it is a congregate frontend for apt, flatpak, and pipx intended for use on Sapphian Linux
|
|
||||||
|
|
||||||
Commands:
|
|
||||||
usage: Print this dialogue
|
|
|
@ -1,9 +0,0 @@
|
||||||
clean: Remove unused packages that were previously installed via apt and flatpak
|
|
||||||
usage:
|
|
||||||
spm clean -[h|Nn|Yyaf]
|
|
||||||
options:
|
|
||||||
-Yy: Skip confirmation and approve all cleanup
|
|
||||||
-Nn: Skip confirmation and approve no cleanup
|
|
||||||
-a: Requires root, skip confirmation and approve apt cleanup. Redundant when used with -Yy
|
|
||||||
-f: Skip confirmation and approve flatpak cleanup. Redundant when used with -Yy
|
|
||||||
-h: Print usage dialogue
|
|
|
@ -1,7 +0,0 @@
|
||||||
search: Search for packages available via apt or flatpak
|
|
||||||
usage:
|
|
||||||
spm search -[h|af] query
|
|
||||||
options:
|
|
||||||
-a: Disable default search-all behavior and whitelist apt for search
|
|
||||||
-f: Disable default search-all behavior and whitelist flatpak for search
|
|
||||||
-h: Print usage dialogue
|
|
|
@ -1,10 +0,0 @@
|
||||||
upgrade: Update packages installed via apt, flatpak, and pipx
|
|
||||||
usage:
|
|
||||||
spm upgrade -[h|Nn|Yyafp]
|
|
||||||
options:
|
|
||||||
-Yy: Skip confirmation and approve all upgrades
|
|
||||||
-Nn: Skip confirmation and approve no upgrades
|
|
||||||
-a: Requires root, skip confirmation and approve apt upgrades. Redundant when used with -Yy
|
|
||||||
-f: Skip confirmation and approve flatpak updates. Redundant when used with -Yy
|
|
||||||
-p: Skip confirmation and approve pipx updates. Redundant when used with -Yy
|
|
||||||
-h: Print usage dialogue
|
|
|
@ -26,9 +26,9 @@ search() {
|
||||||
usage() {
|
usage() {
|
||||||
echo "Sapphic Package Manager v${VERSION}"
|
echo "Sapphic Package Manager v${VERSION}"
|
||||||
cat ./usr/share/doc/spm/spm
|
cat ./usr/share/doc/spm/spm
|
||||||
sed -e 's/^/ /' ./usr/share/doc/spm/spm_upgrade
|
sed -e 's/^/ /' /usr/share/doc/spm/spm_upgrade
|
||||||
sed -e 's/^/ /' ./usr/share/doc/spm/spm_search
|
sed -e 's/^/ /' /usr/share/doc/spm/spm_search
|
||||||
sed -e 's/^/ /' ./usr/share/doc/spm/spm_clean
|
sed -e 's/^/ /' /usr/share/doc/spm/spm_clean
|
||||||
}
|
}
|
||||||
|
|
||||||
case $COMMAND in
|
case $COMMAND in
|
||||||
|
|
Loading…
Add table
Reference in a new issue