Upon removing, it removes entries from cache too! (06.29.2a.ut)
This commit is contained in:
parent
ad247fa21e
commit
6ecce2688c
1 changed files with 4 additions and 4 deletions
8
spkg
8
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
|
||||
|
|
Loading…
Reference in a new issue