# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

DESCRIPTION="A dd replacement from the Sortix operating system"
HOMEPAGE="https://sortix.org/rw/"
SRC_URI="https://sortix.org/rw/release/${PN}-portable-${PV}.tar.gz"

LICENSE="ISC"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""

DEPEND=""
RDEPEND="${DEPEND}"

RESTRICT="mirror"

src_unpack() {
	default
	mv "${WORKDIR}/${PN}-portable-${PV}" "${S}"
}

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