33 lines
1.1 KiB
Bash
33 lines
1.1 KiB
Bash
# Template file for 'smali'
|
|
pkgname=smali
|
|
version=2.1.3
|
|
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="9b63186344a095d9bbffb27b7100ddfe933432f2b8f90f649a1e5e8cc26bb355
|
|
01ec5e42ccd197658314967e86e311a695bc86b2ace32fc4ad95e34d3595750a
|
|
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
|
|
}
|