From 6ecce2688c6b33596e784be3a98ab844b1f3f394 Mon Sep 17 00:00:00 2001 From: Ohio2 Date: Tue, 29 Jun 2021 14:18:20 +0200 Subject: [PATCH] Upon removing, it removes entries from cache too! (06.29.2a.ut) --- spkg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spkg b/spkg index 047b1bb..4a1eeee 100755 --- a/spkg +++ b/spkg @@ -4,11 +4,11 @@ func() # NOTE: sPKG via wget CAN'T RUN WITHOUT MAKE!!! # ALNUX might not have MAKE!!! We tried porting it, dependiecies are fucked. # Correction here in the latest build, you have to run setup to install make, so not that fucked. -source=git.hippoz.xyz/spkg/repo -beta=false +source=git.hippoz.xyz/spkg/repos +# THIS IS UT.BETA case ${1} in setup) cp ./spkg /usr/bin/spkg && chmod +x /usr/bin/spkg && mkdir /etc/ && mv os-release /etc/ ;; - remove) pushd && for fname in $@ && cd /usr/src/${2} && make uninstall && popd ;; + remove) pushd && for fname in $@ && cd /usr/src/${2} && make uninstall && cd .. && rm -rf ${2} && sed "s/${2}//" /var/cache/spkg.cache && popd ;; install) case ${2} in --root-dir=) pushd && for fname in $@ && mkdir ${4}/usr/src/${3} 2>/dev/null && wget $source/${3}/Makefile ${4}/usr/src/${3}/Makefile && cd ${4}/usr/src/${3} && make prepare && make && make install && cat ${3} > ${4}/var/cache/spkg.cache && popd || echo 'Invalid package.' && popd ;; *) pushd && for fname in $@ && mkdir /usr/src/${3} 2>/dev/null && wget $source/${3}/Makefile /usr/src/${3}/Makefile && cd /usr/src/${3} && make prepare && make && make install && cat ${3} > /var/cache/spkg.cache && ${3} --version > /var/cache/spkg.cache && popd || echo 'Invalid package.' && popd ;; @@ -32,5 +32,5 @@ case ${1} in to install, just type in sudo spkg install. to update, just type in sudo spkg update. to setup (IMPORTANT!!!), just type in sudo spkg setup' ;; - --version) echo 'beta 21.06.29.1a' ;; + --version) echo 'beta 21.06.29.2a.ut' ;; esac