From c701f2d1700baa84b119635cca95973ee02c9bb1 Mon Sep 17 00:00:00 2001 From: ngn Date: Mon, 19 Aug 2024 10:04:11 +0300 Subject: [PATCH] new: move cpio from desktop pool --- src/cpio/.gitignore | 3 +++ src/cpio/changes.md | 2 ++ src/cpio/pkg.sh | 31 +++++++++++++++++++++++++++++++ src/mtsc/changes.md | 3 +++ src/mtsc/pkg.sh | 7 ++++--- 5 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 src/cpio/.gitignore create mode 100644 src/cpio/changes.md create mode 100644 src/cpio/pkg.sh diff --git a/src/cpio/.gitignore b/src/cpio/.gitignore new file mode 100644 index 0000000..8b56c9f --- /dev/null +++ b/src/cpio/.gitignore @@ -0,0 +1,3 @@ +.cache/ +dist/ +root/ diff --git a/src/cpio/changes.md b/src/cpio/changes.md new file mode 100644 index 0000000..dd1c016 --- /dev/null +++ b/src/cpio/changes.md @@ -0,0 +1,2 @@ +# 2.15 +First version diff --git a/src/cpio/pkg.sh b/src/cpio/pkg.sh new file mode 100644 index 0000000..9468d17 --- /dev/null +++ b/src/cpio/pkg.sh @@ -0,0 +1,31 @@ +NAME="cpio" +DESC="Copies files into or out of a cpio or tar archive" +VERSION="2.15" + +FILES=("https://ftp.gnu.org/gnu/cpio/cpio-${VERSION}.tar.bz2") +HASHES=("3394d444ca1905ea56c94b628b706a0b") + +DEPENDS=("glibc") +BUILD=() + +PACKAGE() { + tar xf "${NAME}-${VERSION}.tar.bz2" + cd "${NAME}-${VERSION}" + + ./configure --prefix=/usr \ + --enable-mt \ + --with-rmt=/usr/libexec/rmt + make + makeinfo --html -o doc/html doc/cpio.texi + makeinfo --html --no-split -o doc/cpio.html doc/cpio.texi + makeinfo --plaintext -o doc/cpio.txt doc/cpio.texi + + make DESTDIR="${ROOTDIR}" install + install -v -m755 -d "${ROOTDIR}/usr/share/doc/cpio-${VERSION}/html" + install -v -m644 doc/html/* \ + "${ROOTDIR}/usr/share/doc/cpio-${VERSION}/html" + install -v -m644 doc/cpio.{html,txt} \ + "${ROOTDIR}/usr/share/doc/cpio-${VERSION}" + + cd .. && rm -rf "${NAME}-${VERSION}" +} diff --git a/src/mtsc/changes.md b/src/mtsc/changes.md index 89f7bb5..19ac023 100644 --- a/src/mtsc/changes.md +++ b/src/mtsc/changes.md @@ -1,3 +1,6 @@ +# 24.05m1 +Added missing dependency: cpio + # 24.05 Updated to new upstream release diff --git a/src/mtsc/pkg.sh b/src/mtsc/pkg.sh index be5de8e..a57ae7e 100644 --- a/src/mtsc/pkg.sh +++ b/src/mtsc/pkg.sh @@ -1,21 +1,22 @@ # general info NAME="mtsc" DESC="MatterLinux tools and scripts collection" -VERSION="24.05" +VERSION="24.05m1" # required files -FILES=("https://git.matterlinux.xyz/Matter/mtsc/archive/${VERSION}.tar.gz") +FILES=("https://git.matterlinux.xyz/Matter/mtsc/archive/${VERSION%m*}.tar.gz") HASHES=("665f6d417b7cc27bb6a467f6007921bb01ad6968bc1bb35093654143438d79bf") # install and build depends DEPENDS=( "bash" "coreutils" "gnupg" "fakeroot" "tar" "matt" + "cpio" ) BUILD=() PACKAGE(){ - tar xf "${VERSION}.tar.gz" + tar xf "${VERSION%m*}.tar.gz" cd "${NAME}" make DESTDIR="${ROOTDIR}" install