SHARE
TWEET

PKGBUILD jd-gui

nahuelmorata Nov 13th, 2017 492 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Contributor: Simon Legner <Simon.Legner@gmail.com>
  2. # Maintainer: Simon Legner <Simon.Legner@gmail.com>
  3. pkgname=jd-gui
  4. pkgver=1.4.0
  5. pkgrel=3
  6. pkgdesc='A standalone graphical utility that displays Java source codes of .class files'
  7. arch=('any')
  8. url='http://jd.benow.ca/'
  9. license=('GPL3')
  10. depends=('java-runtime')
  11. makedepends=('gradle')
  12. provides=('jd-gui')
  13. conflicts=('jd-gui-bin')
  14. source=(
  15.   "https://github.com/java-decompiler/jd-gui/archive/v${pkgver}.tar.gz"
  16.   "jd-gui.desktop"
  17. )
  18.  
  19. prepare() {
  20.     cd "$srcdir/$pkgname-$pkgver"
  21. }
  22.  
  23. build() {
  24.     cd "$srcdir/$pkgname-$pkgver"
  25.     ./gradlew build --stacktrace
  26. }
  27.  
  28. package() {
  29.     cd "$srcdir/$pkgname-$pkgver/build/libs"
  30.   install -Dm644 "$pkgname-$pkgver.jar" "$pkgdir/usr/share/java/$pkgname/$pkgname.jar"
  31.   install -d "$pkgdir/usr/bin"
  32.   echo -e "#!/bin/sh\nexec java -jar /usr/share/java/$pkgname/$pkgname.jar" '"$@"' > "$pkgdir/usr/bin/$pkgname"
  33.   chmod 755 "$pkgdir/usr/bin/$pkgname"
  34.   install -Dm644 "$srcdir/jd-gui.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
  35.   install -Dm644  "$srcdir/$pkgname-$pkgver/src/linux/resources/jd_icon_128.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
  36. }
  37.  
  38. sha1sums=('649111b4c79282803c4505d4c587537277f09a79'
  39.           '8c5d2cf8505bca50cbb0ba2778e3e908982cd99d')
  40. sha256sums=('5dd1220e7426352d51fa9eadb8a7d9685a6d7d93646c3fabae6f964cbf3edf2a'
  41.             '4846cb2382fabae07febd9315b19e0a60b3ad7449dcf45e3f7dd535e1f4ca8a6')
  42. sha512sums=('3e2c6224d8252f66fab61f74aaa4199b6fd2a6ad475418e80e1b31fcdf5a4d7fc3f8ce04fa729843e53029e656865f6eac62aa5306518a0770aecc41708f92a6'
  43.             '9ddb8521c1791f5d3251f012e30b7d6aaa48b509e02af628f3b8a90fb6ba176de3f79fbfbec316c86c1594ac142ca4d85bcffff7ea8f0fba6f926ea78cd1f81d')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top