void-packages/srcpkgs/jadx/template

24 lines
640 B
Bash

# Template file for 'jadx'
pkgname=jadx
version=1.2.0
revision=1
hostmakedepends="openjdk8 gradle"
short_desc="Decompiler for Dalvik bytecode"
maintainer="Andrew Benson <abenson+void@gmail.com>"
license="Apache-2.0"
homepage="https://github.com/skylot/jadx"
distfiles="https://github.com/skylot/jadx/archive/v${version}.tar.gz"
checksum=f2d1a3a8ee6782c02f77eb1f77f94f028f725ccd4d5a7ec0b9fcca330de95b33
do_build() {
gradle copyArtifacts
}
do_install() {
vmkdir usr/share
vcopy build/jadx usr/share
vmkdir usr/bin
ln -s /usr/share/jadx/bin/jadx ${DESTDIR}/usr/bin/jadx
ln -s /usr/share/jadx/bin/jadx-gui ${DESTDIR}/usr/bin/jadx-gui
}