2013-04-24 13:52:07 +02:00
|
|
|
# Template file for 'smali'
|
|
|
|
pkgname=smali
|
2014-06-05 11:59:27 +02:00
|
|
|
version=2.0.3
|
2013-04-24 13:52:07 +02:00
|
|
|
revision=1
|
|
|
|
short_desc="An assembler/disassembler for Android's dex format"
|
2014-06-05 11:59:27 +02:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="Simplified BSD"
|
2013-04-24 13:52:07 +02:00
|
|
|
homepage="https://code.google.com/p/smali/"
|
2014-06-05 11:59:27 +02:00
|
|
|
depends="java-runtime"
|
|
|
|
distfiles="
|
|
|
|
https://smali.googlecode.com/files/smali-${version}.jar
|
|
|
|
https://smali.googlecode.com/files/baksmali-${version}.jar"
|
|
|
|
checksum="
|
|
|
|
2460a3b764b6f185de505523d644f1a877c17e02427f3b042ed8a74b03c0a66c
|
|
|
|
9373a47d8ed39021de36004f6bbc1d5c7efc2c61906251aa56a06440a67c8878"
|
2013-04-24 13:52:07 +02:00
|
|
|
|
2014-06-05 11:59:27 +02:00
|
|
|
do_extract() {
|
|
|
|
:
|
|
|
|
}
|
2013-04-24 13:52:07 +02:00
|
|
|
do_install() {
|
|
|
|
vmkdir usr/share/smali
|
2014-06-05 11:59:27 +02:00
|
|
|
vcopy ${XBPS_SRCDISTDIR}/${pkgname}-${version}/smali-${version}.jar usr/share/smali
|
|
|
|
vcopy ${XBPS_SRCDISTDIR}/${pkgname}-${version}/baksmali-${version}.jar usr/share/smali
|
2013-04-24 13:52:07 +02:00
|
|
|
vmkdir usr/bin
|
2014-06-05 11:59:27 +02:00
|
|
|
for f in smali baksmali; do
|
|
|
|
sed -e "s,@VERSION@,${version},g" ${FILESDIR}/${f} > ${DESTDIR}/usr/bin/${f}
|
|
|
|
done
|
2013-04-24 13:52:07 +02:00
|
|
|
}
|