update: add a custom configuration for matt

This commit is contained in:
ngn 2024-08-12 04:35:37 +03:00
parent 996960d94f
commit 519fa98486
2 changed files with 27 additions and 4 deletions

17
src/matt/config.ini Normal file
View File

@ -0,0 +1,17 @@
# configuration file for matt, please see the wiki page for more information
# https://matterlinux.xyz/wiki/matt
tmpdir = /var/lib/matt/temp
datadir = /var/lib/matt/data
[base]
url = mptp://stable.matterlinux.xyz/base
# url = mptp://next.matterlinux.xyz/base
[desktop]
url = mptp://stable.matterlinux.xyz/desktop
# url = mptp://next.matterlinux.xyz/base
# [server]
# url = mptp://stable.matterlinux.xyz/server
# url = mptp://next.matterlinux.xyz/server

View File

@ -4,8 +4,14 @@ DESC="The (new) MatterLinux package manager"
VERSION="24.01" VERSION="24.01"
# required files # required files
FILES=("https://git.matterlinux.xyz/Matter/matt/archive/${VERSION}.tar.gz") FILES=(
HASHES=("0315077dd05777654305079a3ea12c6f436c2fe7f3ea3e4b1fb00cd476a25073") "https://git.matterlinux.xyz/Matter/matt/archive/${VERSION}.tar.gz"
"config.ini"
)
HASHES=(
"0315077dd05777654305079a3ea12c6f436c2fe7f3ea3e4b1fb00cd476a25073"
"d71417d617f9953c3d2746edd3c62dd1b17851e5a459a62ffc320c9738c88b30"
)
# install and build depends # install and build depends
DEPENDS=("libmp" "libinih" "gettext") DEPENDS=("libmp" "libinih" "gettext")
@ -18,10 +24,10 @@ PACKAGE(){
make make
install -Ddm755 "${ROOTDIR}/usr/bin" install -Ddm755 "${ROOTDIR}/usr/bin"
install -Ddm755 "${ROOTDIR}/etc" install -Ddm755 "${ROOTDIR}/etc/matt"
make DESTDIR="${ROOTDIR}" install make DESTDIR="${ROOTDIR}" install
make DESTDIR="${ROOTDIR}" config install -m644 "${ROOTDIR}/config.ini" "${ROOTDIR}/etc/matt/config.ini"
cd .. && rm -r "${NAME}" cd .. && rm -r "${NAME}"
} }