Compare commits

...

2 commits

Author SHA1 Message Date
Ohio2
9f617d1280 sPKG via WGET fixed; sources and setup 2021-06-30 22:38:15 +02:00
Ohio2
0e5c0de66a Too much lines for something that just lists packages 2021-06-30 02:25:18 +02:00

22
spkg
View file

@ -1,11 +1,12 @@
#!/bin/sh
source="https://git.hippoz.xyz/spkg/repo"
source="https://git.hippoz.xyz/down/repo"
tmpdir="/tmp"
setup() {
cp ./spkg /usr/bin/spkg
chmod +x /usr/bin/spkg
mkdir /etc/
mv os-release /etc/
prefix=$1
cp ./spkg "${prefix}"/usr/bin/spkg
chmod +x "${perfix}"/usr/bin/spkg
mkdir "${prefix}"/etc/
mv os-release "${prefix}"/etc/
}
removepkg() {
pkgname=$1
@ -63,7 +64,10 @@ version() {
}
case "${1}" in
setup)
setup ;;
case "${2}" in
--root-dir) setup "${3}" ;;
*) setup "/" ;;
esac ;;
remove)
removepkg "${2}" ;;
install)
@ -89,11 +93,11 @@ case "${1}" in
dblocal "${5}" ;;
query)
dbquery "${5}" ;;
esac;;
list)
dblist ;;
esac;;
esac ;;
esac ;;
list)
dblist ;;
update)
update "${2}" ;;
--help)