hd/hd-1.3.ebuild

33 lines
589 B
Bash
Raw Permalink Normal View History

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}/* ./
2024-01-08 15:38:50 -06:00
echo "pub const VERSION:&str=\"${PV}\";" > version.rs
2024-01-07 15:49:22 -06:00
cd "${S}/${P}"
}
2023-06-09 13:52:55 -05:00
src_install() {
emake DESTDIR="${D}" PREFIX=/usr install
}