32 lines
1.1 KiB
Bash
32 lines
1.1 KiB
Bash
# Template file for 'smali'
|
|
pkgname=smali
|
|
version=2.1.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="593f084064f8e3b77b0a211f9b94227fe31e3bfde2af558cc31382e0e3c68cc7
|
|
085a84923745af8878d81f8c97b7fd046309e74c4ce97ebcdb218aaaf5256770
|
|
8eb3770690019bb26a1d550970a8f19cb12ac60d89a7fc977bf4f1e99db04c79"
|
|
|
|
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
|
|
}
|