void-packages/srcpkgs/smali/template
Nathan Owens 9be51f8722 smali: update to 2.3.4
Signed-off-by: Nathan Owens <ndowens04@gmail.com>
2019-11-27 16:29:52 +01:00

29 lines
1 KiB
Bash

# Template file for 'smali'
pkgname=smali
version=2.3.4
revision=1
build_style=fetch
depends="virtual?java-runtime"
short_desc="Assembler/disassembler for Android's dex format"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/JesusFreke/smali"
distfiles="
https://bitbucket.org/JesusFreke/smali/downloads/smali-${version}.jar
https://bitbucket.org/JesusFreke/smali/downloads/baksmali-${version}.jar
https://raw.githubusercontent.com/JesusFreke/smali/v${version}/NOTICE"
checksum="a7c3bedc9c2a82191a30cfd1a0191f984f7b9add5a75112a7c9686d01dd99d0b
4896337b63a48c318de35f1f861b2a374d0f1ad6b17b6067e16b7d788e8ce4ef
2fdfd360744a49b461eaf016088205c45926596f0106c26553cb90b1adc5a046"
do_install() {
vmkdir usr/share/smali
vcopy smali-${version}.jar usr/share/smali
vcopy baksmali-${version}.jar usr/share/smali
vmkdir usr/bin
for f in smali baksmali; do
sed -e "s,@VERSION@,${version},g" ${FILESDIR}/${f} > ${DESTDIR}/usr/bin/${f}
chmod 0755 ${DESTDIR}/usr/bin/${f}
done
vlicense NOTICE
}