updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / greenfoot / PKGBUILD
blobfda8ca091608d979c938f97db6a6626f2eaac840
1 # Contributor: Kessia 'even' Pinheiro <kessiapinheiro at gmail.com>
2 pkgname=greenfoot
3 pkgver=151
4 pkgrel=1
5 pkgdesc="a combination between a framework for creating two-dimensional grid assignments in Java and an integrated development environment suitable for novice programmers."
6 arch=('i686')
7 url="http://www.greenfoot.org"
8 license=('custom')
9 depends=('jre')
10 makedepends=('jdk')
11 source=("http://www.greenfoot.org/download/files/${pkgname}-installer-${pkgver}.jar"
12         'greenfoot.sh')
13 md5sums=('b407049ca227be8a29919fd250a0f984'
14          'd53690b8eeb2adcbd2c97ac5ab58bc02')
16 build() {
17   cd "${srcdir}"
19   #unjar the files
20   bsdtar -xf ${pkgname}-dist.jar
22   install -m0644 -d ${pkgdir}/usr/share/${pkgname}/{lib,scenarios,tutorial}
23   cp -R ${srcdir}/{lib,scenarios,tutorial} ${pkgdir}/usr/share/$pkgname/
24   chmod 0755 ${pkgdir}/usr/share/${pkgname}/lib -R
26   install -m0644 -d ${pkgdir}/usr/share/licenses/${pkgname}
27   install -m0644 -D ${srcdir}/doc/NOTICE.txt ${pkgdir}/usr/share/licenses/${pkgname}/license.txt
28   install -m0755 -D ${srcdir}/greenfoot.sh ${pkgdir}/usr/bin/greenfoot