rdio-scanner: add the npm garbage

this fails, I think it will always fail, but I'm still trying to find a
sane way to do it
This commit is contained in:
Rick Farina (Zero_Chaos) 2021-12-05 14:41:51 -05:00
parent 437d365549
commit e77b64fa83
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC

View file

@ -229,17 +229,27 @@ LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
S="${WORKDIR}/${PN}-${HASH_COMMIT}/server"
S="${WORKDIR}/${PN}-${HASH_COMMIT}"
src_prepare() {
mv ${WORKDIR}/webapp .
mv ${WORKDIR}/webapp server
eapply_user
}
src_compile() {
pushd client || die
addpredict "/etc/npm"
npm ci --loglevel=error --no-progress || die
npm run build || die
popd || die
pushd server || die
env GOBIN="${S}/bin" go install ./... || die "compile failed"
popd || die
}
src_install() {
pushd server || die
newbin bin/server ${PN}
popd || die
}