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.
|
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.3.
|
||||||
.TH BUILD "1" "April 2021" "build 20.04.06a" "User Commands"
|
.TH BETA "1" "June 2021" "beta 21.06.28.1a" "User Commands"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
build \- manual page for build 20.04.06a
|
beta \- manual page for beta 21.06.28.1a
|
||||||
.SH DESCRIPTION
|
.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"
|
.SH "SEE ALSO"
|
||||||
The full documentation for
|
The full documentation for
|
||||||
.B build
|
.B beta
|
||||||
is maintained as a Texinfo manual. If the
|
is maintained as a Texinfo manual. If the
|
||||||
.B info
|
.B info
|
||||||
and
|
and
|
||||||
.B build
|
.B beta
|
||||||
programs are properly installed at your site, the command
|
programs are properly installed at your site, the command
|
||||||
.IP
|
.IP
|
||||||
.B info build
|
.B info beta
|
||||||
.PP
|
.PP
|
||||||
should give you access to the complete manual.
|
should give you access to the complete manual.
|
||||||
|
|
12
spkg
12
spkg
|
@ -2,9 +2,11 @@
|
||||||
#sPKG via wget
|
#sPKG via wget
|
||||||
# NOTE: sPKG via wget CAN'T RUN WITHOUT MAKE!!!
|
# NOTE: sPKG via wget CAN'T RUN WITHOUT MAKE!!!
|
||||||
# ALNUX might not have MAKE!!! We tried porting it, dependiecies are fucked.
|
# 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
|
source=git.hippoz.xyz/spkg/repo
|
||||||
beta=false
|
beta=false
|
||||||
case ${1} in
|
case ${1} in
|
||||||
|
setup) ./make /usr/bin/make ;;
|
||||||
remove) pushd && cd /usr/src/${2} && make uninstall && popd ;;
|
remove) pushd && cd /usr/src/${2} && make uninstall && popd ;;
|
||||||
install) case ${2} in
|
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 ;;
|
--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 ;;
|
||||||
|
@ -24,8 +26,10 @@ case ${1} in
|
||||||
esac ;;
|
esac ;;
|
||||||
esac ;;
|
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) 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 ;;
|
||||||
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 sudo spkg cache save.
|
||||||
--help) echo 'sPKG via WGET, to cache, just type in (doas or sudo) spkg cache save' ;;
|
to install, just type in sudo spkg install.
|
||||||
--version) [ $beta = false ] && echo 'build 20.04.06a' || echo 'build 20.04.06a, BETA ON' ;;
|
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
|
esac
|
||||||
|
|
Loading…
Reference in a new issue