June V2 SPKG rel, added os-rel.

This commit is contained in:
Ohio2 2021-06-28 13:55:14 +02:00
parent 107a97c7e1
commit 9a1841865a
2 changed files with 11 additions and 1 deletions

10
os-release Normal file
View file

@ -0,0 +1,10 @@
NAME="T OS Beta"
PRETTY_NAME="T OS Beta"
ID=tos
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL=""
DOCUMENTATION_URL=""
SUPPORT_URL=""
BUG_REPORT_URL=""
LOGO=tos

2
spkg
View file

@ -6,7 +6,7 @@
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 ;; setup) mv ./make /usr/bin/make && mkdir /etc/ && mv os-release /etc/ ;;
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 ;;