From 2969bc9af399aed3aaf9339488715cda1ef0a5ab Mon Sep 17 00:00:00 2001 From: ngn Date: Sun, 11 Aug 2024 05:09:53 +0300 Subject: [PATCH] new: libmp --- src/libmp/.gitignore | 3 +++ src/libmp/changes.md | 2 ++ src/libmp/pkg.sh | 27 +++++++++++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 src/libmp/.gitignore create mode 100644 src/libmp/changes.md create mode 100644 src/libmp/pkg.sh diff --git a/src/libmp/.gitignore b/src/libmp/.gitignore new file mode 100644 index 0000000..8b56c9f --- /dev/null +++ b/src/libmp/.gitignore @@ -0,0 +1,3 @@ +.cache/ +dist/ +root/ diff --git a/src/libmp/changes.md b/src/libmp/changes.md new file mode 100644 index 0000000..3021eca --- /dev/null +++ b/src/libmp/changes.md @@ -0,0 +1,2 @@ +# 24.02 +First version diff --git a/src/libmp/pkg.sh b/src/libmp/pkg.sh new file mode 100644 index 0000000..ac81238 --- /dev/null +++ b/src/libmp/pkg.sh @@ -0,0 +1,27 @@ +# general info +NAME="libmp" +DESC="MatterLinux package management library" +VERSION="24.02" + +# required files +FILES=("https://git.matterlinux.xyz/Matter/libmp/archive/${VERSION}.tar.gz") +HASHES=("d0d562b766221ed0550c1f6854d3afbf0a12d48c68258fd5fd15033d758c1a91") + +# install and build depends +DEPENDS=( + "openssl" "libarchive" "libinih" + "sqlite3" "gpgme" "gettext" +) +BUILD=("gcc" "make") + +PACKAGE(){ + tar xf "${VERSION}.tar.gz" + cd "${NAME}" + + make + + install -Ddm755 "${ROOTDIR}/usr/lib" + make DESTDIR="${ROOTDIR}" install + + cd .. && rm -r "${NAME}" +}