New package: smali-1.4.2

This commit is contained in:
pancake 2013-04-24 13:52:07 +02:00
parent 78cf6bf3c1
commit ee50862ff6
3 changed files with 33 additions and 0 deletions

2
srcpkgs/smali/files/baksmali Executable file
View file

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

2
srcpkgs/smali/files/smali Executable file
View file

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

29
srcpkgs/smali/template Normal file
View file

@ -0,0 +1,29 @@
# Template file for 'smali'
pkgname=smali
version=1.4.2
revision=1
short_desc="An assembler/disassembler for Android's dex format"
maintainer="pancake <pancake@nopcode.org>"
license="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"
noextract=yes
do_install() {
S=${XBPS_MASTERDIR}/host/sources
vmkdir usr/share/smali
vcopy $S/smali-${version}.jar usr/share/smali
vcopy $S/baksmali-${version}.jar usr/share/smali
vmkdir usr/bin
vinstall ${FILESDIR}/smali 755 usr/bin
vinstall ${FILESDIR}/baksmali 755 usr/bin
}
smali_package() {
pkg_install() {
vmove usr
}
}