29 lines
1 KiB
Bash
29 lines
1 KiB
Bash
# Template file for 'smali'
|
|
pkgname=smali
|
|
version=2.5.2
|
|
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="9544299578b16f771d8aa8eaefe0d3718ca03478c16f3c356f2fcf1366bfb116
|
|
d3116248cce4f82ec5a31eb7f95ee75daff42ddf6eed0ab573973dc53fbad2e5
|
|
e247d92c57251fc3e674b5366bafd40ed644bfc7c4a55172e464685a25622945"
|
|
|
|
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
|
|
}
|