2023-06-09 13:52:55 -05:00
|
|
|
# Copyright 2022 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=8
|
|
|
|
|
2023-06-09 13:54:14 -05:00
|
|
|
DESCRIPTION="Hexdump program written in rust"
|
2024-01-07 15:49:22 -06:00
|
|
|
HOMEPAGE="https://git.ylink.one/corey/hd"
|
|
|
|
SRC_URI="https://git.ylink.one/corey/hd/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
2023-06-09 13:52:55 -05:00
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64"
|
2024-01-07 15:49:22 -06:00
|
|
|
S="${WORKDIR}"
|
2023-06-09 13:52:55 -05:00
|
|
|
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
emake all
|
|
|
|
}
|
|
|
|
|
2024-01-07 15:49:22 -06:00
|
|
|
src_prepare() {
|
|
|
|
default
|
|
|
|
unpack ${P}.tar.gz
|
|
|
|
mv hd ${P}
|
|
|
|
mv ${P}/* ./
|
|
|
|
cd "${S}/${P}"
|
|
|
|
}
|
|
|
|
|
2023-06-09 13:52:55 -05:00
|
|
|
src_install() {
|
|
|
|
emake DESTDIR="${D}" PREFIX=/usr install
|
|
|
|
}
|