updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / glassfish / PKGBUILD
blob9c32afe7ffe192ad1ed36e5d87d8f41ba6a279ac
1 # Maintainer: Guillaume ALAUX <guillaume at archlinux dot org>
2 # Contributor: Andreas W. Hauser <andy-aur@splashground.de>
4 pkgname=glassfish
5 pkgver=2.1.1_b31g
6 pkgrel=1
7 pkgdesc="application server (like tomcat) based on Java EE 5 from Sun"
8 url="https://glassfish.dev.java.net/"
9 license=(GPL CDDL)
10 depends=(java-runtime apache-ant)
11 makedepends=(java-runtime)
12 arch=(i686 x86_64)
13 options=(!strip)
14 source=(http://download.java.net/javaee5/v2.1.1_branch/promoted/Linux/glassfish-installer-v${pkgver/_/-}-linux.jar)
15 md5sums=('9e697c9a3cd537e90496602ee4fd7213')
16 noextract=(glassfish-installer-v${pkgver/_/-}-linux.jar)
17 install=${pkgname}.install
19 build() {
20         cd ${srcdir}
21         echo a | java -Xmx256m -jar glassfish-installer-v${pkgver/_/-}-linux.jar -console
23         cd glassfish
24         chmod -R +x lib/ant/bin
26         cd ..
27         mkdir ${pkgdir}/opt
28         mv glassfish ${pkgdir}/opt/