ref: 7aa236a13def85d36701cdc2df4c89dbd591fe23 gentoo-overlay/app-admin/dw/dw-1.0.ebuild -rw-r--r-- 671 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

DESCRIPTION="A crypto-secure diceware passphrase generator"
HOMEPAGE="https://git.sr.ht/~dax/dw"
SRC_URI="https://git.sr.ht/~dax/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

S="${WORKDIR}/${PN}-v${PV}"

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
}