void-packages/srcpkgs/smali/template

33 lines
1.1 KiB
Bash

# Template file for 'smali'
pkgname=smali
version=2.1.2
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="9e587778c0329a509c82d8e78ea3e694e17106c788a4f53507920e51e50a8b83
cf1c5884f27b9774ad92fe8ffd629bf362d554d56d6db414cd6c69d9c9068265
6a5ccbe10280293e14ecfc435ae422afc406265244e98f0a87e1ecfa238ab10c"
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
}