python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / smali / template
blob4cbe299268234584a2906fdd2d2e9a2a71fbc1b6
1 # Template file for 'smali'
2 pkgname=smali
3 version=2.2.2
4 revision=1
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"
10 distfiles="
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"
17 nocross=yes
19 do_extract() {
20         :
23 do_install() {
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
27         vmkdir usr/bin
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}
31         done
32         vlicense ${XBPS_SRCDISTDIR}/${pkgname}-${version}/NOTICE