summaryrefslogtreecommitdiff
path: root/sys-fs/wpflash/wpflash-0.ebuild
blob: c50fd6d7e3b966e26c0aa0e487544cbad050cfc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=0

inherit eutils

DESCRIPTION="flash the firmware on a Webpal"
HOMEPAGE="http://webpal.bigbrd.com/"
SRC_URI="http://webpal.bigbrd.com/wpflash.c"

LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE=""
RESTRICT="bindist mirror"

DEPEND=""

S=${WORKDIR}

src_unpack() {
	cp "${DISTDIR}"/${A} "${WORKDIR}"/ || die
	epatch "${FILESDIR}"/${PN}-gentoo.patch
}

src_compile() {
	emake wpflash || die
}

src_install() {
	dosbin wpflash || die
}