summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Wu2015-06-12 19:02:35 +0200
committerPeter Wu2015-06-12 19:02:35 +0200
commitd23729e50e0184e0ffe5b40085fc98cd1365d5be (patch)
tree7e890881bb83c929c5c6983f2ba8bc21d3997b4f
downloadaur-dex2jar.tar.gz
Initial import
From https://github.com/Lekensteyn/aur/tree/master/dex2jar
-rw-r--r--.SRCINFO13
-rw-r--r--PKGBUILD29
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8ecec763a89
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,13 @@
+pkgbase = dex2jar
+ pkgdesc = Tools to work with android .dex and java .class files
+ pkgver = 2.0
+ pkgrel = 1
+ url = http://sourceforge.net/projects/dex2jar/
+ arch = any
+ license = Apache
+ depends = java-runtime
+ source = http://sourceforge.net/projects/dex2jar/files/dex2jar-2.0.zip
+ sha1sums = 9df351a67db5f327fb3726bb7b5c795029547301
+
+pkgname = dex2jar
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..59373c27759
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Peter Wu <lekensteyn at gmail dot com>
+# Contributor: Andreas Schönfelder <passtschu at freenet dot de>
+pkgname=dex2jar
+pkgver=2.0
+pkgrel=1
+pkgdesc="Tools to work with android .dex and java .class files"
+arch=(any)
+url="http://sourceforge.net/projects/dex2jar/"
+license=('Apache')
+depends=('java-runtime')
+source=("http://sourceforge.net/projects/dex2jar/files/${pkgname}-${pkgver}.zip")
+sha1sums=('9df351a67db5f327fb3726bb7b5c795029547301')
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ mkdir -p "$pkgdir/usr/bin/"
+ mkdir -p "$pkgdir/opt/dex2jar/lib/"
+
+ install -m755 *.sh "$pkgdir/opt/dex2jar/"
+ install -m644 lib/*.jar "$pkgdir/opt/dex2jar/lib/"
+
+ ln -s /opt/dex2jar/d2j-dex2jar.sh "$pkgdir/usr/bin/dex2jar"
+ # TODO: should d2j-* be installed to /usr/bin? too.
+ # dex2jar.sh is gone in dex2jar-2.0, should both d2j-dex2jar and dex2jar be
+ # installed, or just dex2jar?
+}
+
+# vim:set ts=2 sw=2 et: