ref: e6c373e7c2f34ef7565654ded44b8ba391a7e354 gentoo-overlay/app-admin/dw/dw-1.0.ebuild -rw-r--r-- 624 bytes View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Copyright 1999-2019 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit git-r3

DESCRIPTION="A crypto-secure diceware passphrase generator"
HOMEPAGE="https://git.sr.ht/~dax/dw"
EGIT_REPO_URI="https://git.sr.ht/~dax/dw"

LICENSE="ISC"
SLOT="0"
KEYWORDS="~amd64"

src_install() {
	emake DESTDIR="${D}" PREFIX="${EPREFIX}"/usr install

	mv "${D}${EPREFIX}"/usr/bin/dwgen "${D}${EPREFIX}"/usr/bin/dwgen.old
	sed "s|${D}||" < "${D}${EPREFIX}"/usr/bin/dwgen.old > "${D}${EPREFIX}"/usr/bin/dwgen
	chmod 775 "${D}${EPREFIX}"/usr/bin/dwgen
	rm "${D}${EPREFIX}"/usr/bin/dwgen.old
}