[arch-commits] Commit in enjarify/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Wed Dec 1 14:58:14 UTC 2021


    Date: Wednesday, December 1, 2021 @ 14:58:14
  Author: felixonmars
Revision: 1059617

archrelease: copy trunk to community-staging-any

Added:
  enjarify/repos/community-staging-any/
  enjarify/repos/community-staging-any/PKGBUILD
    (from rev 1059615, enjarify/trunk/PKGBUILD)

----------+
 PKGBUILD |   45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)

Copied: enjarify/repos/community-staging-any/PKGBUILD (from rev 1059615, enjarify/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-01 14:58:14 UTC (rev 1059617)
@@ -0,0 +1,45 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: Lance Chen <cyen0312 at gmail.com>
+
+pkgname=enjarify
+pkgver=1.0.3
+_gitcommit=c4fb7e047a457ab580a3c8577aa76fd53ce967b0
+pkgrel=6
+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:



More information about the arch-commits mailing list