editcp-bin: 1.0.18 bump

This commit is contained in:
blshkv 2019-11-25 14:30:36 +08:00
parent 9b02e95208
commit 6c9b50ee01
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
2 changed files with 39 additions and 0 deletions

View file

@ -1 +1,2 @@
DIST editcp-1.0.16.tar.xz 34698456 BLAKE2B a39934ac361b68543a8912f18cf824d38f88f061e8cccbda2ebb4276165258e30d7e8293d249131a6f40c1cc6c352d27fdefcd7b6f8e55823a8fbbc56b0ed3bf SHA512 bc2f0d212fd4ed35f98a12acd26ebf2bfa083fc974a972d546ca0e3e98a2636b9fe939016623f2a97c25ef8f41f6021904e8d1edfc022e5fd2b7cfddc2136df3
DIST editcp-1.0.18.tar.xz 27874008 BLAKE2B 4ec535c586158bda8f7f3f59eaa4676a28360f08174111ffae21cd3312b8bfdea7604c993650fc71e098802f6c30c8b04a24a52cff2bee82dbe58aff32283727 SHA512 d6d031fa50751c200843a90aae7aa2e08884124154553d1bde6dcad3a403d05803561c0c17b034b57e0fe99e95875fe3b8d715c70b87e47a95ac425ba97550f0

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}
}