updated on Thu Jan 19 00:16:31 UTC 2012
[aur-mirror.git] / eclipse-axdt / PKGBUILD
blob8e17a0ea85b7323accd2dacdb11eab5603f79f92
1 # Maintainer: Chris Chapman <chris dot chapman at aggiemail dot usu dot edu>
3 pkgname=eclipse-axdt
4 pkgver=0.0.7.1
5 pkgrel=1
6 pkgdesc="Eclipse Plugin for ActionScript development"
7 arch=('i686' 'x86_64')
8 url="http://axdt.org/"
9 license=('EPL')
10 depends=('eclipse-imp')
11 source=(components.url)
12 md5sums=('a24d1dc66aaddb18e32cbbb84fe7d2b6')
14 build() {
15   _dest=${pkgdir}/usr/share/eclipse/dropins/axdt/eclipse
16   _weburl="http://update.axdt.org/"
17   
18   cat components.url | while read _ctype _cname ; do
19     case ${_ctype} in
20       feature)
21         msg "Downloading feature ${_cname}..."
22         cd ${srcdir}
23         wget -nc "${_weburl}/features/${_cname}" || return 1
24         install -dm755 ${_dest}/features/${_cname/.jar}
25         cd ${_dest}/features/${_cname/.jar}
26         jar xf ${srcdir}/${_cname} || return 1
27         ;;
28       plugin)
29         msg "Downloading plugin ${_cname}..."
30         cd ${srcdir}
31         wget -nc "${_weburl}/plugins/${_cname}" || return 1
32         install -dm755 ${_dest}/plugins
33         install -m644 ${srcdir}/${_cname} ${_dest}/plugins
34         ;;
35       unpack)
36         msg "Downloading and unpacking plugin ${_cname}..."
37         cd ${srcdir}
38         wget -nc "${_weburl}/plugins/${_cname}" || return 1
39         install -dm755 ${_dest}/plugins/${_cname/.jar}
40         cd ${_dest}/plugins/${_cname/.jar}
41         jar xf ${srcdir}/${_cname} || return 1
42         ;;
43       *)
44         error "Unknown jar type..."
45         return 1
46         ;;
47     esac
48   done
49