# Maintainer: Levente Polyak # Contributor: Lance Chen pkgname=enjarify pkgver=1.0.3 _gitcommit=c4fb7e047a457ab580a3c8577aa76fd53ce967b0 pkgrel=8 pkgdesc='Translates Dalvik bytecode to equivalent Java bytecode' url='https://github.com/google/enjarify' arch=('any') license=('Apache') depends=("python") makedepends=('git') source=(${pkgname}::"git+https://github.com/google/enjarify#commit=${_gitcommit}") sha512sums=('SKIP') prepare() { cd ${pkgname} sed 's| -Xss515m||g' -i enjarify/runtests.py sed 's|for bits in range(256):|for opts in [options.NONE, options.PRETTY, options.ALL]:|' -i enjarify/hashtests.py sed '/options.Options/d' -i enjarify/hashtests.py sed 's|bits|0|g' -i enjarify/hashtests.py } build() { cd ${pkgname} python -m compileall . python -O -m compileall . } check() { cd ${pkgname} LC_CTYPE=en_US.UTF-8 python -m enjarify.hashtests } package() { cd ${pkgname} install -d "${pkgdir}/usr/lib/enjarify" cp -a enjarify enjarify.sh "${pkgdir}/usr/lib/enjarify" install -d "${pkgdir}/usr/bin" ln -s /usr/lib/enjarify/enjarify.sh "${pkgdir}/usr/bin/enjarify" install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}" } # vim: ts=2 sw=2 et: