diff options
author | XZS | 2015-07-01 10:55:12 +0200 |
---|---|---|
committer | XZS | 2015-07-01 10:55:12 +0200 |
commit | f1c3c0448b078e2146f4f3c5811277f52da68054 (patch) | |
tree | d44d5e939b14cd4954d10bab76b1f45100ac248b /PKGBUILD | |
download | aur-f1c3c0448b078e2146f4f3c5811277f52da68054.tar.gz |
initial import from old AUR version 3
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7ac7731b17e2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,52 @@ +# Maintainer: XZS <d dot f dot fischer at web dot de> +# Contributor: xgdgsc <xgdgsc@gmail.com> +# Contributor: Jesús Jerez <jerezmoreno@gmail.com> +pkgname=eclipse-eclipsecolortheme +pkgver=1.0.0 +pkgrel=2 +pkgdesc="Eclipse Color Theme" +url="http://www.eclipsecolorthemes.org" +license=("EPL/1.0") +arch=('any') +depends=('eclipse') +makedepends=("unzip") +noextract=("${pkgname}.zip") +source=("${pkgname}.zip::http://eclipse-color-theme.github.io/update/eclipse-color-theme-update-site.zip") +noextract=("${pkgname}.zip") +md5sums=('52b5a7fa1d2a207e8219234fa75239d0') + +_extract() { + [[ -d plugins ]] && return + ( unzip "${pkgname}.zip" > /dev/null || return 0 ) + mv update/* . + rm -r update +} + +prepare() { + _extract +} + +pkgver() { + _extract + echo plugins/com.github.eclipsecolortheme_*.jar | grep -Po '(?<=com.github.eclipsecolortheme_)\d+\.\d+\.\d+(?=\.\d{12}\.jar)' +} + +package() { + _dest="${pkgdir}"/usr/share/eclipse/dropins/${pkgname/eclipse-}/eclipse + + # 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 +} |