diff options
author | David Rosenstrauch | 2017-04-11 15:38:21 -0400 |
---|---|---|
committer | David Rosenstrauch | 2017-04-11 15:38:21 -0400 |
commit | 0f1f737c3c50df6d0fa7b50c012262c1afdeed11 (patch) | |
tree | e79f05d8ed6affa98b5fe70b7c29de932c9c703f | |
download | aur-0f1f737c3c50df6d0fa7b50c012262c1afdeed11.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 39 |
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c7017074414f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = eclipse-goclipse + pkgdesc = Eclipse IDE for the Go programming language + pkgver = 0.16.1 + pkgrel = 1 + url = https://github.com/GoClipse/goclipse + arch = any + license = EPL + depends = eclipse + depends = go + source = https://github.com/GoClipse/goclipse.github.io/archive/0.16.1.zip + md5sums = c831a3a121869c1a969e40245f4175b7 + +pkgname = eclipse-goclipse + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..49b3225afbe7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Contributor: Angel Velasquez <angvp@archlinux.org> +# Contributor: Corrado Primier <bardo@aur.archlinux.org> +# Contributor: G_Syme <demichan(at)mail(dot)upb(dot)de> +# Contributor: Michael Lass <bevan@bi-co.net> +# Maintainer: David Rosenstrauch <darose@darose.net> + +pkgname=eclipse-goclipse +pkgver=0.16.1 +pkgrel=1 +pkgdesc="Eclipse IDE for the Go programming language" +arch=('any') +url="https://github.com/GoClipse/goclipse" +license=('EPL') +depends=('eclipse' 'go') +source=(https://github.com/GoClipse/goclipse.github.io/archive/0.16.1.zip) +md5sums=('c831a3a121869c1a969e40245f4175b7') + +package() { + _dest=${pkgdir}/usr/lib/eclipse/dropins/${pkgname/eclipse-}/eclipse + + _srcdir=${srcdir}/goclipse.github.io-${pkgver}/releases/local-repo + cd ${_srcdir} + + # Features + find features -type f | while read _feature ; do + if [[ ${_feature} =~ (.*\.jar$) ]] ; then + install -dm755 ${_dest}/${_feature%*.jar} + cd ${_dest}/${_feature/.jar} + jar xf ${_srcdir}/${_feature} || return 1 + else + install -Dm644 ${_feature} ${_dest}/${_feature} + fi + done + + # Plugins + find plugins -type f | while read _plugin ; do + install -Dm644 ${_plugin} ${_dest}/${_plugin} + done +} |