summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorproninyaroslav2016-01-29 18:34:52 +0300
committerproninyaroslav2016-01-29 18:34:52 +0300
commite5140575701727e7dfae048c0b25b77cd09d3251 (patch)
treedbdedc1decc277d67c2d87eead43b8ba58b7f38d
downloadaur-e5140575701727e7dfae048c0b25b77cd09d3251.tar.gz
Initial import
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD27
2 files changed, 44 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6b76b30fea2
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by mksrcinfo v8
+# Fri Jan 29 15:34:24 UTC 2016
+pkgbase = jd-core-java
+ pkgdesc = A thin-wrapper for the Java Decompiler
+ pkgver = 1.2
+ pkgrel = 1
+ url = http://jd.benow.ca/
+ arch = any
+ license = GPL3
+ makedepends = git
+ depends = java-runtime
+ provides = jd-core
+ source = jd-core-java::git://github.com/nviennot/jd-core-java.git
+ sha256sums = SKIP
+
+pkgname = jd-core-java
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..65309c55771
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: yaroslav <proninyaroslav@mail.ru>
+
+pkgname=jd-core-java
+pkgver=1.2
+pkgrel=1
+pkgdesc='A thin-wrapper for the Java Decompiler'
+arch=('any')
+url='http://jd.benow.ca/'
+license=('GPL3')
+depends=('java-runtime')
+makedepends=('git')
+provides=('jd-core')
+source=("${pkgname}"::"git://github.com/nviennot/jd-core-java.git")
+sha256sums=('SKIP')
+
+build() {
+cd "${srcdir}/${pkgname}"
+./gradlew build
+}
+
+package() {
+cd "${srcdir}/${pkgname}/build/libs"
+install -Dm644 "${pkgname}-${pkgver}.jar" "${pkgdir}/usr/share/java/${pkgname}/${pkgname}.jar"
+install -d "${pkgdir}/usr/bin"
+echo -e "#!/bin/sh\nexec java -jar /usr/share/java/${pkgname}/${pkgname}.jar" '"$@"' > "${pkgdir}/usr/bin/${pkgname}"
+chmod 755 "${pkgdir}/usr/bin/${pkgname}"
+}