June SPKG Release WOOO!
This commit is contained in:
parent
c19f2d8d31
commit
107a97c7e1
3 changed files with 20 additions and 12 deletions
BIN
make
Executable file
BIN
make
Executable file
Binary file not shown.
18
man
18
man
|
@ -1,18 +1,22 @@
|
|||
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.2.
|
||||
.TH BUILD "1" "April 2021" "build 20.04.06a" "User Commands"
|
||||
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.3.
|
||||
.TH BETA "1" "June 2021" "beta 21.06.28.1a" "User Commands"
|
||||
.SH NAME
|
||||
build \- manual page for build 20.04.06a
|
||||
beta \- manual page for beta 21.06.28.1a
|
||||
.SH DESCRIPTION
|
||||
sPKG via WGET, to cache, just type in (doas or sudo) spkg cache save
|
||||
sPKG via WGET, to cache, just type in sudo spkg cache save.
|
||||
.IP
|
||||
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
|
||||
.SH "SEE ALSO"
|
||||
The full documentation for
|
||||
.B build
|
||||
.B beta
|
||||
is maintained as a Texinfo manual. If the
|
||||
.B info
|
||||
and
|
||||
.B build
|
||||
.B beta
|
||||
programs are properly installed at your site, the command
|
||||
.IP
|
||||
.B info build
|
||||
.B info beta
|
||||
.PP
|
||||
should give you access to the complete manual.
|
||||
|
|
14
spkg
14
spkg
|
@ -2,9 +2,11 @@
|
|||
#sPKG via wget
|
||||
# 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
|
||||
case ${1} in
|
||||
setup) ./make /usr/bin/make ;;
|
||||
remove) pushd && cd /usr/src/${2} && make uninstall && popd ;;
|
||||
install) case ${2} in
|
||||
--root-dir=) pushd && mkdir /usr/src/${3} 2>/dev/null && wget $source/${3}/Makefile /usr/src/${3}/Makefile && cd /usr/src/${3} && make prepare && PREFIX=${4} make && make install && cat ${3} > /var/cache/spkg.cache && popd || echo 'Invalid package.' && popd ;;
|
||||
|
@ -23,9 +25,11 @@ case ${1} in
|
|||
query) wget $source/spkg.cache /tmp/spkg/web.spkg.cache && grep ${5} /tmp/spkg/web.spkg.cache && rm /tmp/spkg/cache || mkdir 2>/dev/null /tmp/spkg && wget $source/spkg.cache /tmp/spkg/ && grep ${5} /tmp/spkg/web.spkg.cache && rm /tmp/spkg/cache;;
|
||||
esac ;;
|
||||
esac ;;
|
||||
esac ;;
|
||||
# a new update implementation, can't use it without beta, it can break shit so don't try it if you don't want it
|
||||
update) [ $beta = false ] && echo "Beta is off, don't use this." || version1=$(wget $source/spkg.cache /tmp/spkg/web.spkg.cache && grep ${2}) && version2=$(wget $source/spkg.cache /tmp/spkg/web.spkg.cache && grep ${2} /tmp/spkg/web.spkg.cache ) && [ version1 = version2] && echo 'Up to date.' || pushd && mkdir /usr/src/${2} 2>/dev/null && wget $source/${2}/Makefile /usr/src/${2}/Makefile && cd /usr/src/${2} && make prepare && make && make install && cat ${2} > /var/cache/spkg.cache && ${2} --version > /var/cache/spkg.cache && popd ;;
|
||||
--help) echo 'sPKG via WGET, to cache, just type in (doas or sudo) spkg cache save' ;;
|
||||
--version) [ $beta = false ] && echo 'build 20.04.06a' || echo 'build 20.04.06a, BETA ON' ;;
|
||||
esac ;;
|
||||
update) version1=$(wget $source/spkg.cache /tmp/spkg/web.spkg.cache && grep ${2}) && version2=$(wget $source/spkg.cache /tmp/spkg/web.spkg.cache && grep ${2} /tmp/spkg/web.spkg.cache ) && [ version1 = version2] && echo 'Up to date.' || pushd && mkdir /usr/src/${2} 2>/dev/null && wget $source/${2}/Makefile /usr/src/${2}/Makefile && cd /usr/src/${2} && make prepare && make && make install && cat ${2} > /var/cache/spkg.cache && ${2} --version > /var/cache/spkg.cache && popd ;;
|
||||
--help) echo 'sPKG via WGET, to cache, just type in sudo spkg cache save.
|
||||
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.28.1a' ;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue