sys-fs/dwarfs-bin: add 0.13.0

Signed-off-by: Denis Reva <denis7774@gmail.com>
This commit is contained in:
Denis Reva
2025-09-04 20:23:51 +05:00
parent 95a5cc3cf1
commit 0492d5c7f3
2 changed files with 69 additions and 0 deletions

View File

@@ -1,2 +1,4 @@
DIST dwarfs-bin-0.12.4-amd64.tar.xz 3616968 BLAKE2B 962fbfc659dfab44d49c1b05bd03723381fce111250aed9717a80325cdfc9206522467306066804b272bad7f5f224ca3cded681592c47c9d45475c6752d85795 SHA512 ac8a7e24272c9a0a6a7ac4192e533da2d6860672b7c6d93ea7b58719e708d37699b707041f390d64552355ddaac234820fe8d848cdeef4a745fb786501f4bca2
DIST dwarfs-bin-0.12.4-arm64.tar.gz 3258580 BLAKE2B f11b6946cad48f25f68ef6fd21b82b43fc6f3d964f7ded8928f103f65fcf11306eb760a7d0a0271b10073d0e9112957694840319d535685734b0e09f2c068b00 SHA512 bc127cded2b13cf7babeccd4d9d72b5b55030d3f2adc2cf43e1b53b55535004d0f436025a4599322a9bf805c432616e96623a0941099fa30eebaea3a8ed4d5c2
DIST dwarfs-bin-0.13.0-amd64.tar.xz 4021880 BLAKE2B 3890283307fd5d5e100bac79186790d1d7d37d9de80a1f5adf1a170b0f4c5d7406f6f9318ac068b60809ef874bf5ad61d2d1148a0367d234bcebc52eb5af41b7 SHA512 9e3af0f9be29e5975503626348a050aa48e4096caaf96b82287638f475b4a83410f92568340591f4cc917cd10d58c2ee37ed2e33aa0fa37f348d14724ce0821b
DIST dwarfs-bin-0.13.0-arm64.tar.gz 3531120 BLAKE2B 8a780925e5df5947e75859cdfe20cac7cd04f089f2116702ee0b83c893bb5a04ed2711d555a59bfe2376f9084ceb79ec37b301ec43930e5603b718c52b2d9784 SHA512 300807985d79542e82b1e810acd75633f07809ba1788920d4858d308daa0719318c2bc5a4d3ca9abaa16601f7599b354de496eda8b0339193d597b7e7f593267

View File

@@ -0,0 +1,67 @@
# Copyright 1999-2025 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.tar.xz -> ${P}-amd64.tar.xz )
arm64? ( https://github.com/mhx/dwarfs/releases/download/v${PV}/dwarfs-${PV}-Linux-aarch64.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"
elif use arm64; then
S="${WORKDIR}/dwarfs-${PV}-Linux-aarch64"
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"
}