summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Ritchie2015-06-27 21:30:48 -0400
committerLuc Ritchie2015-06-27 21:30:48 -0400
commit3404949c1158221f3f6e23b59d6414ff33d456d6 (patch)
treea002137070f303fbe4b3fcced449b0d9b256f054
downloadaur-3404949c1158221f3f6e23b59d6414ff33d456d6.tar.gz
Initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD32
3 files changed, 51 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..0de237b6902
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = fernflower-git
+ pkgdesc = An analytical decompiler for Java
+ pkgver = r207.e4e7240
+ pkgrel = 1
+ url = https://github.com/fesh0r/fernflower
+ arch = any
+ license = Apache
+ makedepends = git
+ makedepends = apache-ant
+ depends = java-runtime
+ source = git+https://github.com/fesh0r/fernflower
+ sha256sums = SKIP
+
+pkgname = fernflower-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..43e86cb126d
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*.pkg.tar.xz
+pkg
+src
+fernflower
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c80881daeeb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: William Luc Ritchie <luc dot ritchie at gmail dot com>
+
+_pkgname=fernflower
+pkgname=$_pkgname-git
+pkgver=r207.e4e7240
+pkgrel=1
+pkgdesc='An analytical decompiler for Java'
+arch=('any')
+url='https://github.com/fesh0r/fernflower'
+license=('Apache')
+depends=('java-runtime')
+makedepends=('git' 'apache-ant')
+source=("git+$url")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd $_pkgname
+ printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd $_pkgname
+ ant
+}
+
+package() {
+ cd $_pkgname
+ install -Dm644 "$_pkgname.jar" "$pkgdir/usr/share/java/$_pkgname/$pkgname.jar"
+ install -d "$pkgdir/usr/bin"
+ printf '#!/bin/sh\nexec java -jar /usr/share/java/%s/%s.jar "$@"\n' $_pkgname $pkgname > "$pkgdir/usr/bin/$_pkgname"
+ chmod 755 "$pkgdir/usr/bin/$_pkgname"
+}