new: openssl, matt

This commit is contained in:
ngn 2024-08-11 19:28:21 +03:00
parent 460692d741
commit 4fa0e2b061
6 changed files with 67 additions and 0 deletions

3
src/matt/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

2
src/matt/changes.md Normal file
View File

@ -0,0 +1,2 @@
# 24.00
First version

27
src/matt/pkg.sh Normal file
View File

@ -0,0 +1,27 @@
# general info
NAME="matt"
DESC="The (new) MatterLinux package manager"
VERSION="24.00"
# required files
FILES=("https://git.matterlinux.xyz/Matter/matt/archive/${VERSION}.tar.gz")
HASHES=("b2099575fdc14506c57dcaafbdb9a1bc207687e70eb26511e0aceb881ba54eaa")
# install and build depends
DEPENDS=("libmp" "libinih" "gettext")
BUILD=("gcc" "make")
PACKAGE(){
tar xf "${VERSION}.tar.gz"
cd "${NAME}"
make
install -Ddm755 "${ROOTDIR}/usr/bin"
install -Ddm755 "${ROOTDIR}/etc"
make DESTDIR="${ROOTDIR}" install
make DESTDIR="${ROOTDIR}" config
cd .. && rm -r "${NAME}"
}

3
src/openssl/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
.cache/
dist/
root/

2
src/openssl/changes.md Normal file
View File

@ -0,0 +1,2 @@
# 3.3.1
First version

30
src/openssl/pkg.sh Normal file
View File

@ -0,0 +1,30 @@
# general info
NAME="openssl"
DESC="Free and open-source software for general-purpose cryptography and secure communication"
VERSION="3.3.1"
# required files
FILES=("https://www.openssl.org/source/openssl-${VERSION}.tar.gz")
HASHES=("777cd596284c883375a2a7a11bf5d2786fc5413255efab20c50d6ffe6d020b7e")
# install and build depends
DEPENDS=("glibc" "perl" "make-ca")
BUILD=()
PACKAGE(){
tar xf "${NAME}-${VERSION}.tar.gz"
cd "${NAME}-${VERSION}"
./config --prefix=/usr \
--openssldir=/etc/ssl \
--libdir=lib \
shared \
zlib-dynamic
make
sed -i '/INSTALL_LIBS/s/libcrypto.a libssl.a//' Makefile
make DESTDIR="${ROOTDIR}" MANSUFFIX=ssl install
mv -v "${ROOTDIR}/usr/share/doc/openssl" "${ROOTDIR}/usr/share/doc/openssl-${VERSION}"
cp -vfr doc/* "${ROOTDIR}/usr/share/doc/openssl-${VERSION}"
cd .. && rm -r "${NAME}-${VERSION}"
}