33 lines
1.2 KiB
Bash
33 lines
1.2 KiB
Bash
# Template file for 'smali'
|
|
pkgname=smali
|
|
version=2.2.0
|
|
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="381b3ab7e376b8322e31091f57f2e8a6882bd704025b88cd4de678a7b3448ee0
|
|
699717fd18ee4ca35b7c5a29a659de23d80c9c53d26aea9eb5eb0dde99657bb7
|
|
6a5ccbe10280293e14ecfc435ae422afc406265244e98f0a87e1ecfa238ab10c"
|
|
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
|
|
}
|