Create jd-gui-package, initial upstream version 2.0.86

This commit is contained in:
Enbeon 2025-02-26 13:34:05 +00:00
commit 37a44cd3c7
No known key found for this signature in database
5 changed files with 78 additions and 0 deletions

18
.SRCINFO Normal file
View file

@ -0,0 +1,18 @@
pkgbase = jd-gui-duo
pkgdesc = A 2-in-1 JAVA decompiler based on JD-CORE v0 and v1
pkgver = 2.0.86
pkgrel = 1
url = https://github.com/nbauma109/jd-gui-duo
arch = any
license = GPL3
makedepends = maven
makedepends = jdk17-openjdk
depends = java-runtime>=17
source = jd-gui-duo-2.0.86.tar.gz::https://github.com/nbauma109/jd-gui-duo/archive/refs/tags/2.0.86.tar.gz
source = jd-gui-duo
source = jd-gui-duo.desktop
sha256sums = 02601fec6c2087655037e4355c493e02c62564409c31859d215056050a33f0ad
sha256sums = fdd42c566e0ba0f62b4432191721aaac05175f3bd85de9732e63b3ca52750cf0
sha256sums = d40a09c9c228b55dcb54823b878cd180521386a11abffed478ce89439fd4e184
pkgname = jd-gui-duo

17
LICENSE Normal file
View file

@ -0,0 +1,17 @@
Binary files, as well as any files describing changes ("patches") to the software that is being built are excluded from this license.
They are provided under the license terms of the software they describe changes for.
Any files containing a license notice are excluded from this license. They are provided under the license terms defined in their respective notices.
Copyright 2024 Arch Linux Contributors
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE
FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY
DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

31
PKGBUILD Normal file
View file

@ -0,0 +1,31 @@
# Maintainer: Enbeon <actuallyenbeon at gmail dot com>
pkgname=jd-gui-duo
pkgver=2.0.86
pkgrel=1
pkgdesc="A 2-in-1 JAVA decompiler based on JD-CORE v0 and v1"
arch=('any')
url="https://github.com/nbauma109/jd-gui-duo"
license=('GPL3')
depends=('java-runtime>=17')
makedepends=('maven' 'jdk17-openjdk')
source=(
"$pkgname-$pkgver.tar.gz::https://github.com/nbauma109/jd-gui-duo/archive/refs/tags/$pkgver.tar.gz"
"jd-gui-duo"
"jd-gui-duo.desktop"
)
sha256sums=('02601fec6c2087655037e4355c493e02c62564409c31859d215056050a33f0ad'
'fdd42c566e0ba0f62b4432191721aaac05175f3bd85de9732e63b3ca52750cf0'
'd40a09c9c228b55dcb54823b878cd180521386a11abffed478ce89439fd4e184')
build() {
cd "$pkgname-$pkgver"
JAVA_HOME="/usr/lib/jvm/java-17-openjdk" mvn clean package --no-transfer-progress
}
package() {
install -d "$pkgdir/usr/share/java/$pkgname"
cp -r "$srcdir/$pkgname-$pkgver/assembler/target/lib" "$pkgdir/usr/share/java/$pkgname"
install -Dm755 "jd-gui-duo" "$pkgdir/usr/bin/$pkgname"
install -Dm644 "jd-gui-duo.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
install -Dm644 "$srcdir/$pkgname-$pkgver/src/linux/resources/jd_icon_128.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
}

4
jd-gui-duo Normal file
View file

@ -0,0 +1,4 @@
#!/bin/bash
JDK_JAVA_OPTIONS='--add-opens java.base/java.net=ALL-UNNAMED --add-opens java.desktop/javax.swing.plaf.basic=ALL-UNNAMED --add-opens java.desktop/javax.swing.text=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED --add-opens java.base/java.lang.ref=ALL-UNNAMED'
java -ea -cp "/usr/share/java/jd-gui-duo/lib/*" org.jd.gui.App

8
jd-gui-duo.desktop Normal file
View file

@ -0,0 +1,8 @@
[Desktop Entry]
Comment=A 2-in-1 JAVA decompiler based on JD-CORE v0 and v1
Terminal=false
Name=JD-GUI-DUO
Exec=jd-gui-duo
Type=Application
Categories=Development;Utility;
Icon=jd-gui-duo