void-packages/srcpkgs/smali/template

34 lines
1.2 KiB
Bash

# Template file for 'smali'
pkgname=smali
version=2.2.1
revision=1
short_desc="An assembler/disassembler for Android's dex format"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="Simplified BSD"
homepage="https://github.com/JesusFreke/smali"
depends="virtual?java-runtime"
distfiles="
https://bitbucket.org/JesusFreke/smali/downloads/smali-${version}.jar
https://bitbucket.org/JesusFreke/smali/downloads/baksmali-${version}.jar
https://raw.githubusercontent.com/JesusFreke/smali/v${version}/NOTICE"
checksum="cd01517b5c4dde417ef5802b727ded7605d3ab512db504f943a9730f707df1e4
83c672439e9f7211d192273192e1ee496e4e13dd5e6e11e0fa312e2870b48b74
2fdfd360744a49b461eaf016088205c45926596f0106c26553cb90b1adc5a046"
nocross=yes
do_extract() {
:
}
do_install() {
vmkdir 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
for f in smali baksmali; do
sed -e "s,@VERSION@,${version},g" ${FILESDIR}/${f} > ${DESTDIR}/usr/bin/${f}
chmod 0755 ${DESTDIR}/usr/bin/${f}
done
vlicense ${XBPS_SRCDISTDIR}/${pkgname}-${version}/NOTICE
}