editcp: initial import from whubb's brain

This commit is contained in:
Rick Farina (Zero_Chaos) 2019-01-09 14:39:31 -05:00
parent 9e40fc3124
commit 9cb323feb5
No known key found for this signature in database
GPG key ID: A5DD1427DD11F94A
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST editcp-1.0.8.tar.xz 34696884 BLAKE2B 7388f222033309ce13bbf2b99cc2c0b92af9d3315f9e264632c387a428832d9d381555b79b1e0598e73750b145828543e2b2d1046e980e6bc6ed44885059a27f SHA512 83a9023aaf6c3165a74de7146ca8b1534c83154cc2a9ffed692e46c2a399edeac675111cd1fb68e81c3ff9271be33827ec7f8e9b6ba8f266e67490cbf90926cd

View file

@ -0,0 +1,38 @@
# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_PN="editcp"
DESCRIPTION=""
HOMEPAGE="https://www.farnsworth.org/dale/codeplug/editcp"
SRC_URI="${HOMEPAGE}/downloads/linux/${MY_PN}-${PV}.tar.xz"
LICENSE=""
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
RDEPEND="dev-libs/libusb:1"
S="${WORKDIR}/${MY_PN}-${PV}"
QA_FLAGS_IGNORED='.*'
RESTRICT="strip"
src_prepare() {
default
sed -i -e "s#^dirname=#dirname=/opt/${MY_PN}#" ${MY_PN}.sh || die
grep -q "^dirname=/opt/${MY_PN}" ${MY_PN}.sh ||
die "sed change failed"
}
src_install() {
rm install
dodir /opt/${MY_PN}
exeinto /opt/${MY_PN}
doexe *.sh editcp
cp -a lib plugins "${D}"/opt/${MY_PN}
dosym /opt/${MY_PN}/${MY_PN}.sh /opt/bin/${MY_PN}
}