diff options
author | Saleem Rashid | 2020-11-29 19:44:24 +0000 |
---|---|---|
committer | Saleem Rashid | 2020-11-29 19:44:24 +0000 |
commit | 6276d664e94eb5bdd94645bfb2c29e223aa01785 (patch) | |
tree | edf4c6a78df51af69eb10203a2835d18ad4d8a0b | |
parent | cfc0201a2927569332107194538392837e0cc2b8 (diff) | |
download | aur-6276d664e94eb5bdd94645bfb2c29e223aa01785.tar.gz |
PKGBUILD: Update and fix broken Gradle plugin
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 7 | ||||
-rw-r--r-- | jd-gui.patch | 67 |
3 files changed, 73 insertions, 8 deletions
@@ -1,7 +1,8 @@ pkgbase = jd-gui-git pkgdesc = A standalone Java Decompiler GUI - pkgver = 1.4.1.r0.g4ed68bf + pkgver = 1.6.6.r0.gb3c1ced pkgrel = 1 + url = https://github.com/java-decompiler/jd-gui arch = i686 arch = x86_64 license = LGPL3 @@ -10,11 +11,11 @@ pkgbase = jd-gui-git depends = java-runtime provides = jd-gui conflicts = jd-gui - source = git://github.com/java-decompiler/jd-gui.git + source = git+https://github.com/java-decompiler/jd-gui.git source = jd-gui.patch source = jd-gui.sh sha256sums = SKIP - sha256sums = c8d78d59457d3cd604d8e99ffbdb22e0124a811e72085e7489890d7dd43671ae + sha256sums = 7c437ec34546d4a62c77da5587718f681d5998f6d03f44d547148e1715a0f154 sha256sums = 1f37782756847ed41044a6503799bd52fd9b325e1c52906dec99f13499976adf pkgname = jd-gui-git @@ -3,22 +3,23 @@ _pkgname=jd-gui pkgname="${_pkgname}-git" gitname="${_pkgname}" pkgrel=1 -pkgver=1.4.1.r0.g4ed68bf +pkgver=1.6.6.r0.gb3c1ced pkgdesc='A standalone Java Decompiler GUI' arch=('i686' 'x86_64') +url='https://github.com/java-decompiler/jd-gui' license=('LGPL3') provides=("${_pkgname}") conflicts=("${_pkgname}") makedepends=('git' 'gradle') depends=('java-runtime') source=( - "git://github.com/java-decompiler/${gitname}.git" + "git+https://github.com/java-decompiler/${gitname}.git" "${_pkgname}.patch" "${_pkgname}.sh" ) sha256sums=( 'SKIP' - 'c8d78d59457d3cd604d8e99ffbdb22e0124a811e72085e7489890d7dd43671ae' + '7c437ec34546d4a62c77da5587718f681d5998f6d03f44d547148e1715a0f154' '1f37782756847ed41044a6503799bd52fd9b325e1c52906dec99f13499976adf' ) diff --git a/jd-gui.patch b/jd-gui.patch index 5963af66f6b1..79b30651ec4c 100644 --- a/jd-gui.patch +++ b/jd-gui.patch @@ -1,8 +1,70 @@ +diff --git i/build.gradle w/build.gradle +index 5163340..0302f5c 100644 +--- i/build.gradle ++++ w/build.gradle +@@ -3,7 +3,6 @@ buildscript { + jcenter() + } + dependencies { +- classpath 'com.netflix.nebula:gradle-ospackage-plugin:5.3.0' // RPM & DEB support + classpath 'edu.sc.seis.gradle:launch4j:2.4.4' + classpath 'net.sf.proguard:proguard-gradle:6.1.0' + } +@@ -12,7 +11,6 @@ buildscript { + apply plugin: 'java' + apply plugin: 'distribution' + apply plugin: 'edu.sc.seis.launch4j' +-apply plugin: 'nebula.ospackage' + + // Common configuration // + rootProject.version='1.6.6' +@@ -121,34 +119,6 @@ launch4j { + bundledJrePath = '%JAVA_HOME%' + } + +-// Packages for Linux // +-ospackage { +- buildDeb.dependsOn 'proguard' +- buildRpm.dependsOn 'proguard' +- +- license = file('LICENSE') +- maintainer 'Emmanuel Dupuy <emmanue1@users.noreply.github.com>' +- os LINUX +- packageDescription 'JD-GUI, a standalone graphical utility that displays Java sources from CLASS files' +- packageGroup 'java' +- packageName project.name +- release '0' +- summary 'A Java Decompiler' +- url 'https://github.com/java-decompiler/jd-gui' +- +- into '/opt/' + project.name +- from (proguard.outJarFiles[0]) { +- fileMode 0755 +- } +- from ('src/linux/resources/') { +- fileMode 0755 +- } +- from 'LICENSE', 'NOTICE', 'README.md' +- +- postInstall 'cd /opt/' + project.name + '; ln -s ./' + file(proguard.outJarFiles[0]).name + ' ./jd-gui.jar; xdg-icon-resource install --size 128 --novendor ./jd_icon_128.png jd-gui; xdg-desktop-menu install ./*.desktop' +- preUninstall 'cd /opt/' + project.name + '; rm -f ./jd-gui.jar; rm -fr ./ext; xdg-desktop-menu uninstall ./*.desktop' +-} +- + // Distributions for OSX and Windows // + distributions { + osx.contents { +@@ -183,6 +153,3 @@ distributions { + osxDistTar.dependsOn 'proguard' + osxDistZip.dependsOn 'proguard' + } +- +-build.finalizedBy buildDeb +-build.finalizedBy buildRpm diff --git i/src/linux/resources/jd-gui.desktop w/src/linux/resources/jd-gui.desktop -index b86bbc1..920b3de 100644 +index 6ba8b03..fab0ac1 100644 --- i/src/linux/resources/jd-gui.desktop +++ w/src/linux/resources/jd-gui.desktop -@@ -2,6 +2,6 @@ +@@ -2,7 +2,7 @@ Comment=Java Decompiler JD-GUI Terminal=false Name=JD-GUI @@ -10,3 +72,4 @@ index b86bbc1..920b3de 100644 +Exec=/usr/bin/jd-gui Type=Application Icon=jd-gui + MimeType=application/java;application/java-vm;application/java-archive |