R2PM_BEGIN

R2PM_GIT "https://github.com/radare/radeco"
R2PM_DESC "[syspkg] Radare Decompiler in Rust"

BINDIR="${R2PM_PLUGDIR}/../bin"

R2PM_INSTALL() {
	cargo update --verbose
	cargo build --verbose
	ln -fs `pwd`/target/debug/radeco "${BINDIR}"/radeco
}

R2PM_UNINSTALL() {
	rm -f "${BINDIR}"/radeco
}

R2PM_END
