blob: af3a6dd2c2a43cf7c76230edd5843d04a52870ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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-environment')
makedepends=('git' 'mercurial')
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}"
}
|