blob: 0320791c4cc7abf26fbd3820f4544e4cfc4c50fc (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Maintainer: Zion Nimchuk <zionnimchuk@gmail.com>
pkgname=jgrasp
_version=2.0.6
_version_postfix=16
pkgver=${_version}"_"${_version_postfix}
pkgrel=1
pkgdesc="Lightweight development environment written in Java."
arch=('i686' 'x86_64')
license=('custom')
url="http://jgrasp.org"
options=('!strip')
depends=('java-environment-openjdk>=8')
makedepends=('gcc')
source=(
"http://www.jgrasp.org/dl4g/jgrasp/jgrasp${_version//./}_${_version_postfix}.zip"
"jgrasp"
"jGRASP.desktop"
"LICENSE"
)
sha512sums=('5661ad86a3897823039dd8bfd58145e2be300b17961abe034b220bd912454dfe69958c956e5e39d01b53f6d9ff2aa2cc9e270a2c76fc0887ea4c7bd30bb0fa4c'
'5a5be3fb9a2905a8139531b3d5ea21eb11a7f70ad86581515e39da3f936d9d62158ecdba3203c95a5d115e01fa7d00e04244dcdaa56b289e532bcdefa02fd4a1'
'c081c3418f476bec578bb01b95ebbf0b06b3c9290b9d60efc5f4b504fc9e5eba8749724ab5bd4ad5f2a4b417b7adcf6feb92ee938aa50c464c3fdcee7d2159d8'
'd7cb5729610ae80879d34c1869b6fff7be9e0742165cdf80c44d8e279e4f9676d423104a666625dd43d31263d359c59005d66522916a982156d81537f03e654f'
)
build() {
cd "${srcdir}/${pkgname}/src"
./configure
./Make.sh
}
package() {
cd "${srcdir}"
install -D -m755 "${srcdir}/../${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
install -D -m644 "${srcdir}/jGRASP.desktop" "${pkgdir}/usr/share/applications/jGRASP.desktop"
install -D -m644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
cd "${srcdir}/${pkgname}"
#Cleanup some uneeded files.
rm -r ./src
cd bin
rm ./*.exe
rm ./*.bat
rm -r ./osx
cd ..
rm ./internal_bin/*.exe
rm ./internal_bin/*.dll
#Copy to proper install directory
cp -R "${srcdir}/${pkgname}/" "${pkgdir}/usr/share/${pkgname}/"
}
|