sys-fs/dwarfs-bin: add 0.11.0

Signed-off-by: Denis Reva <denis7774@gmail.com>
This commit is contained in:
Denis Reva 2025-03-18 18:32:40 +05:00
parent 9c3359d0d9
commit cc2671f3a3
No known key found for this signature in database
GPG Key ID: AADC29EFABB5C730
2 changed files with 69 additions and 0 deletions

View File

@ -1,2 +1,4 @@
DIST dwarfs-bin-0.10.2-amd64.tar.xz 7349260 BLAKE2B 2b00c8d34ca8749b1b33db6ff9fc2c96938c242875df4ac8d9b7ce5a10b17abd299914aed108dd83788d59e95c27084fd91343cffeaa3a808c642a4ef439a127 SHA512 a4bb0d50d5eeb3d826cc72289695ee7b4e76c76f06d85c7b84868c9895c3bfb88f694e6bfc0098b99f8358e47735b3de81572db689fa662de6c11d7d186ffe83
DIST dwarfs-bin-0.10.2-arm64.tar.gz 6390196 BLAKE2B e25291f9b79c9920e8a8997e2a945652a5d377ede3e780009a4a148bda3d9f661d2dcbc753da3af177c75b5a68bf8c204f60be2fa1a7adcf06a42d30528b23ae SHA512 87ef89581b7038c3f8a99e4a6942eb9f871aa9005ce3d8bfd20d123e69569d000a08a463f817385a3eeef9b1da06b288863465bdfaf9e352761f8f2ea9cbab48
DIST dwarfs-bin-0.11.0-amd64.tar.xz 7703316 BLAKE2B c114b4a8e535a5f45c0cac2f7e96a84b0e0a20475515561b749683bfb39f227193a18a3e760c4c3d115dd53ca5ad1706080269ce3814a4e04565c643673aed68 SHA512 8bba22527a01ec5fff82846ccd964e7aaaa6d792efbb9b615e076b4249a2345b9ca12b9abd12d1576c8f7ebb1ca25b1d6084eef5f3deefe96da6506c19516061
DIST dwarfs-bin-0.11.0-arm64.tar.gz 6775816 BLAKE2B 0bf09227d2dddf51996dda1444dc6dbe079751e54aba2936d24a12ec820ee0534903da4c27cc61456dbc99c2e91b300e170e78341f8f7924835389b87c54ebcb SHA512 8d21b18403f3cb8961439f50e073e728c04024a7f988dcb1b84f7d75154d49e0d2a3885927d5cbe1b7ce01ea7a06c231f129f8bc0c076e3c63bc1ad02bd2569c

View File

@ -0,0 +1,67 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Static version of a fast very high compression read-only FUSE file system"
HOMEPAGE="https://github.com/mhx/dwarfs"
SRC_URI="
amd64? ( https://github.com/mhx/dwarfs/releases/download/v${PV}/dwarfs-${PV}-Linux-x86_64-clang.tar.xz -> ${P}-amd64.tar.xz )
arm64? ( https://github.com/mhx/dwarfs/releases/download/v${PV}/dwarfs-${PV}-Linux-aarch64-clang.tar.xz -> ${P}-arm64.tar.gz )
"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm64"
RDEPEND="
${PYTHON_DEPS}
sys-fs/fuse:3
"
DEPEND="
${RDEPEND}
"
QA_PREBUILT="
opt/dwarfs-bin/bin/*
opt/dwarfs-bin/sbin/*
"
src_unpack() {
if use amd64; then
S="${WORKDIR}/dwarfs-${PV}-Linux-x86_64-clang"
elif use arm64; then
S="${WORKDIR}/dwarfs-${PV}-Linux-aarch64-clang"
fi
default
}
src_prepare() {
default
einfo "Removing legacy fuse2-related stuff..."
rm sbin/dwarfs2 sbin/mount.dwarfs2 || die
einfo "Done."
}
src_install(){
mkdir -p "${ED}/opt/${PN}" || die
mv "${S}"/* "${ED}/opt/${PN}" || die
for file in "${ED}/opt/${PN}/bin"/*; do
dosym "../${PN}/bin/$(basename "${file}")" "/opt/bin/$(basename "${file}")"
done
for file in "${ED}/opt/${PN}/sbin"/*; do
dosym "../${PN}/sbin/$(basename "${file}")" "/opt/bin/$(basename "${file}")"
done
newenvd - "90${P}" <<-_EOF_
MANPATH="${EPREFIX}/opt/${PN}/share/man"
_EOF_
}
pkg_postinst(){
elog "You may find more information in the"
elog "${HOMEPAGE}"
elog "About creating: ${HOMEPAGE}/blob/main/doc/mkdwarfs.md"
elog "About mounting: ${HOMEPAGE}/blob/main/doc/dwarfs.md"
}