mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-11 08:03:16 -04:00
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Denis Reva <denis7774@gmail.com>
48 lines
980 B
Bash
48 lines
980 B
Bash
# Copyright 1999-2022 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
DESCRIPTION="Static version of a fast very high compression read-only FUSE file system"
|
|
HOMEPAGE="https://github.com/mhx/dwarfs"
|
|
SRC_URI="https://github.com/mhx/dwarfs/releases/download/v${PV}/dwarfs-${PV}-Linux.tar.xz"
|
|
|
|
LICENSE="GPL-3"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
IUSE=""
|
|
|
|
RDEPEND="
|
|
${PYTHON_DEPS}
|
|
sys-fs/fuse:3
|
|
!sys-fs/dwarfs
|
|
"
|
|
DEPEND="
|
|
${RDEPEND}
|
|
"
|
|
S="${WORKDIR}/dwarfs-${PV}-Linux/"
|
|
QA_PREBUILT="
|
|
sbin/dwarfs
|
|
bin/*
|
|
"
|
|
src_prepare() {
|
|
default
|
|
einfo "Removing legacy fuse2-related stuff..."
|
|
rm sbin/dwarfs2 sbin/mount.dwarfs2
|
|
einfo "Done. Correcting man paths..."
|
|
mkdir -p usr/
|
|
mv share/ usr/
|
|
einfo "Done."
|
|
}
|
|
|
|
src_install(){
|
|
mv "${S}"/* "${D}"/
|
|
}
|
|
|
|
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"
|
|
}
|