summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoranthraxx2015-09-11 16:41:36 +0200
committeranthraxx2015-09-11 16:41:36 +0200
commitb0708cd62436ef580d13a428b6faa1f1089785bb (patch)
treecaba9fe9091c0de3f8706a3623633df4a92831bc
downloadaur-b0708cd62436ef580d13a428b6faa1f1089785bb.tar.gz
addpkg: jadx-git 0.6.0.499.d55969b-1
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD45
2 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..94d5ada00e9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = jadx-git
+ pkgdesc = Command line and GUI tools to produce Java source code from Android Dex and APK files
+ pkgver = 0.6.0.499.d55969b
+ pkgrel = 1
+ url = https://github.com/skylot/jadx
+ arch = any
+ license = Apache
+ makedepends = git
+ makedepends = java-environment
+ makedepends = gradle
+ depends = java-runtime
+ depends = bash
+ provides = jadx
+ conflicts = jadx
+ source = jadx-git::git+https://github.com/skylot/jadx
+ sha512sums = SKIP
+
+pkgname = jadx-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4cb78e4deec
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=jadx-git
+_gitname=jadx
+pkgver=0.6.0.499.d55969b
+pkgrel=1
+pkgdesc='Command line and GUI tools to produce Java source code from Android Dex and APK files'
+url='https://github.com/skylot/jadx'
+arch=('any')
+license=('Apache')
+depends=('java-runtime' 'bash')
+makedepends=('git' 'java-environment' 'gradle')
+provides=('jadx')
+conflicts=('jadx')
+source=(${pkgname}::git+https://github.com/skylot/${_gitname})
+sha512sums=('SKIP')
+
+pkgver() {
+ cd ${pkgname}
+ printf "%s.%s.%s" "$(git describe --tags --abbrev=0|cut -dv -f2|cut -d- -f1)" \
+ "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd ${pkgname}
+ gradle --gradle-user-home=. dist
+}
+
+package() {
+ cd ${pkgname}/build/jadx
+
+ install -Dm 755 bin/jadx "${pkgdir}/usr/share/java/${_gitname}/bin/jadx"
+ install -Dm 755 bin/jadx-gui "${pkgdir}/usr/share/java/${_gitname}/bin/jadx-gui"
+ install -Dm 644 lib/* -t "${pkgdir}/usr/share/java/${_gitname}/lib"
+
+ install -d "${pkgdir}/usr/bin"
+ ln -s /usr/share/java/${_gitname}/bin/jadx "${pkgdir}/usr/bin/jadx"
+ ln -s /usr/share/java/${_gitname}/bin/jadx-gui "${pkgdir}/usr/bin/jadx-gui"
+
+ install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -Dm 644 NOTICE "${pkgdir}/usr/share/doc/${pkgname}/NOTICE"
+ install -Dm 644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
+}
+
+# vim: ts=2 sw=2 et: