summaryrefslogtreecommitdiff
blob: 702066b4d0b9e38c4d1b21bfba6e0147589fac6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit bash-completion-r1

DESCRIPTION="Genfstab - generate output suitable for addition to an fstab file"
HOMEPAGE="https://github.com/archlinux/arch-install-scripts https://man.archlinux.org/man/genfstab.8"
SRC_URI="https://github.com/archlinux/arch-install-scripts/archive/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
S="${WORKDIR}/arch-install-scripts-tags-v${PV}"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 arm64 x86"

BDEPEND="app-text/asciidoc"

src_compile() {
	emake MANS="doc/genfstab.8" BINPROGS="genfstab"
}

src_install() {
	dobin genfstab
	doman doc/genfstab.8
	newbashcomp completion/genfstab.bash genfstab
}