updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / eclipse-luaeclipse / PKGBUILD
blob22f95978bbdae49d935a079e707625dd8584cdd5
1 # Maintainer:  Diego Martin Nieto Cid <dnietoc at gmail dot com>
3 pkgname=eclipse-luaeclipse
4 pkgver=1.2.0
5 pkgrel=1
6 pkgdesc="Eclipse plugin for the development of applications in the Lua programming language."
7 arch=('i686' 'x86_64')
8 url="http://luaeclipse.luaforge.net/"
9 license=('BSD')
10 depends=('eclipse')
11 source=(
12         'http://luaforge.net/frs/download.php/3193/luaeclipse-1.2.0.zip'
13         'LICENSE'
14         )
15 md5sums=('f735a47b31186aac90aca30e485d00f5'
16          '84e13cfae8aac2d34107f67fbec06ca7')
18 build() {
19   _dest=${pkgdir}/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse
21   cd ${srcdir}
23   # Features
24   find features -type f | while read _feature ; do
25     if [[ ${_feature} =~ (.*\.jar$) ]] ; then
26       install -dm755 ${_dest}/${_feature%*.jar}
27       cd ${_dest}/${_feature/.jar}
28       jar xf ${srcdir}/${_feature} || return 1
29     else
30       install -Dm644 ${_feature} ${_dest}/${_feature}
31     fi
32   done
34   # Plugins
35   find plugins -type f | while read _plugin ; do
36     install -Dm644 ${_plugin} ${_dest}/${_plugin}
37   done
39   install -Dm644 ${srcdir}/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE