1 # Template file for 'smali'
5 short_desc="An assembler/disassembler for Android's dex format"
6 maintainer="Juan RP <xtraeme@voidlinux.eu>"
7 license="Simplified BSD"
8 homepage="https://github.com/JesusFreke/smali"
9 depends="virtual?java-runtime"
11 https://bitbucket.org/JesusFreke/smali/downloads/smali-${version}.jar
12 https://bitbucket.org/JesusFreke/smali/downloads/baksmali-${version}.jar
13 https://raw.githubusercontent.com/JesusFreke/smali/v${version}/NOTICE"
14 checksum="5ec0ce98146d36c5826f1fbf362180a0a264ce0a31d50b8c24833975b47d98e6
15 cf7484d8c090fedfa9cd35215144ffabda43c30afd35e00b57c1cf53bde4c66f
16 2fdfd360744a49b461eaf016088205c45926596f0106c26553cb90b1adc5a046"
24 vmkdir usr/share/smali
25 vcopy ${XBPS_SRCDISTDIR}/${pkgname}-${version}/smali-${version}.jar usr/share/smali
26 vcopy ${XBPS_SRCDISTDIR}/${pkgname}-${version}/baksmali-${version}.jar usr/share/smali
28 for f in smali baksmali; do
29 sed -e "s,@VERSION@,${version},g" ${FILESDIR}/${f} > ${DESTDIR}/usr/bin/${f}
30 chmod 0755 ${DESTDIR}/usr/bin/${f}
32 vlicense ${XBPS_SRCDISTDIR}/${pkgname}-${version}/NOTICE