smali: update to 2.0.3.

This commit is contained in:
Juan RP 2014-06-05 11:59:27 +02:00
parent 0e0fc7b706
commit cc0be576ee
3 changed files with 20 additions and 13 deletions

View File

@ -1,2 +1,2 @@
#!/bin/sh
java -jar /usr/share/smali/baksmali-1.4.2.jar $@
java -jar /usr/share/smali/baksmali-@VERSION@.jar $@

View File

@ -1,2 +1,2 @@
#!/bin/sh
java -jar /usr/share/smali/smali-1.4.2.jar $@
java -jar /usr/share/smali/smali-@VERSION@.jar $@

View File

@ -1,21 +1,28 @@
# Template file for 'smali'
pkgname=smali
version=1.4.2
version=2.0.3
revision=1
short_desc="An assembler/disassembler for Android's dex format"
maintainer="pancake <pancake@nopcode.org>"
license="BSD"
maintainer="Juan RP <xtraeme@gmail.com>"
license="Simplified BSD"
homepage="https://code.google.com/p/smali/"
distfiles="https://smali.googlecode.com/files/smali-1.4.2.jar
https://smali.googlecode.com/files/baksmali-1.4.2.jar"
checksum="7e18fe16b5873967b50bcaefba8163fc7a61be4460a00f1f6af7d1ec3020c481
46a4b142c56fce919ec6987f2a82a78e94ccc5eab915d64732021e4db2102416"
depends="java-runtime"
distfiles="
https://smali.googlecode.com/files/smali-${version}.jar
https://smali.googlecode.com/files/baksmali-${version}.jar"
checksum="
2460a3b764b6f185de505523d644f1a877c17e02427f3b042ed8a74b03c0a66c
9373a47d8ed39021de36004f6bbc1d5c7efc2c61906251aa56a06440a67c8878"
do_extract() {
:
}
do_install() {
vmkdir usr/share/smali
vcopy ${XBPS_SRCDISTDIR}/smali-${version}.jar usr/share/smali
vcopy ${XBPS_SRCDISTDIR}/baksmali-${version}.jar usr/share/smali
vcopy ${XBPS_SRCDISTDIR}/${pkgname}-${version}/smali-${version}.jar usr/share/smali
vcopy ${XBPS_SRCDISTDIR}/${pkgname}-${version}/baksmali-${version}.jar usr/share/smali
vmkdir usr/bin
vinstall ${FILESDIR}/smali 755 usr/bin
vinstall ${FILESDIR}/baksmali 755 usr/bin
for f in smali baksmali; do
sed -e "s,@VERSION@,${version},g" ${FILESDIR}/${f} > ${DESTDIR}/usr/bin/${f}
done
}