diff options
author | Martina Pietruschka | 2016-03-06 19:59:55 +0000 |
---|---|---|
committer | Martina Pietruschka | 2016-03-06 19:59:55 +0000 |
commit | 6b6c2c9d97439d9cf18a6d0032f67f1bff3e5017 (patch) | |
tree | 889f3e9c256b4e1564935bbeed1a48632ff582b8 | |
download | aur-6b6c2c9d97439d9cf18a6d0032f67f1bff3e5017.tar.gz |
init v1
-rw-r--r-- | .SRCINFO | 34 | ||||
-rw-r--r-- | PKGBUILD | 58 | ||||
-rwxr-xr-x | compress-static | 34 |
3 files changed, 126 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7c24d2b68341 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,34 @@ +# Generated by mksrcinfo v8 +# Sun Mar 6 19:59:14 UTC 2016 +pkgbase = zarafa-webapp-spellchecker + pkgdesc = Spellchecker plugin for Zarafa Webapp + pkgver = 1.0 + pkgrel = 1 + arch = any + groups = zarafa + license = AGPL3 + depends = zarafa-webapp + depends = php<7 + depends = php-fpm<7 + backup = etc/webapps/zarafa-webapp/plugins/spellchecker/config.php + source = https://download.zarafa.com/community/final/WebApp/2.1.2/fedora-22/zarafa-webapp-plugins-spell-1.0-21.1.noarch.rpm + source = https://download.zarafa.com/community/final/WebApp/2.1.2/fedora-22/zarafa-webapp-plugins-spell-de-at-1.0-5.1.noarch.rpm + source = https://download.zarafa.com/community/final/WebApp/2.1.2/fedora-22/zarafa-webapp-plugins-spell-de-ch-1.0-4.1.noarch.rpm + source = https://download.zarafa.com/community/final/WebApp/2.1.2/fedora-22/zarafa-webapp-plugins-spell-de-de-1.0-4.1.noarch.rpm + source = https://download.zarafa.com/community/final/WebApp/2.1.2/fedora-22/zarafa-webapp-plugins-spell-en-1.0-3.2.noarch.rpm + source = https://download.zarafa.com/community/final/WebApp/2.1.2/fedora-22/zarafa-webapp-plugins-spell-es-1.0-3.1.noarch.rpm + source = https://download.zarafa.com/community/final/WebApp/2.1.2/fedora-22/zarafa-webapp-plugins-spell-fr-1.0-1.2.noarch.rpm + source = https://download.zarafa.com/community/final/WebApp/2.1.2/fedora-22/zarafa-webapp-plugins-spell-nl-1.0-21.3.noarch.rpm + source = compress-static + md5sums = c6da926fed446a8b80abe68e7cfcbcba + md5sums = 0851cee43fb59dafe3795a0380cf37ff + md5sums = aa83cf83017d2cacd5725dc966f3a366 + md5sums = 1c224c7e234a211ad3e1d475bdd5954b + md5sums = 12dd2207f6afc1c353cf4b5add2ffcf5 + md5sums = 7f471b216bca3ae09ea1ad71983f5d23 + md5sums = 68336fdd31147a2727d15b6cf93a6bb8 + md5sums = 3d9fb645869b7a8d2360fd8354c5abaf + md5sums = d737d82dfab24adc516c001238a4119f + +pkgname = zarafa-webapp-spellchecker + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..99d615b57383 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,58 @@ +# Maintainer: MartiMcFly martimcfly@autorisation.de + +_pkgname=('spellchecker') +pkgname=("zarafa-webapp-${_pkgname}") +groups=('zarafa') +pkgver=1.0 +pkgrel=1 +pkgdesc='Spellchecker plugin for Zarafa Webapp' +arch=('any') +source=("https://download.zarafa.com/community/final/WebApp/2.1.2/fedora-22/zarafa-webapp-plugins-spell-1.0-21.1.noarch.rpm" + "https://download.zarafa.com/community/final/WebApp/2.1.2/fedora-22/zarafa-webapp-plugins-spell-de-at-1.0-5.1.noarch.rpm" + "https://download.zarafa.com/community/final/WebApp/2.1.2/fedora-22/zarafa-webapp-plugins-spell-de-ch-1.0-4.1.noarch.rpm" + "https://download.zarafa.com/community/final/WebApp/2.1.2/fedora-22/zarafa-webapp-plugins-spell-de-de-1.0-4.1.noarch.rpm" + "https://download.zarafa.com/community/final/WebApp/2.1.2/fedora-22/zarafa-webapp-plugins-spell-en-1.0-3.2.noarch.rpm" + "https://download.zarafa.com/community/final/WebApp/2.1.2/fedora-22/zarafa-webapp-plugins-spell-es-1.0-3.1.noarch.rpm" + "https://download.zarafa.com/community/final/WebApp/2.1.2/fedora-22/zarafa-webapp-plugins-spell-fr-1.0-1.2.noarch.rpm" + "https://download.zarafa.com/community/final/WebApp/2.1.2/fedora-22/zarafa-webapp-plugins-spell-nl-1.0-21.3.noarch.rpm" + "compress-static") +backup=("etc/webapps/zarafa-webapp/plugins/${_pkgname}/config.php") +license=('AGPL3') +depends=('zarafa-webapp' + 'php<7' + 'php-fpm<7') +md5sums=('c6da926fed446a8b80abe68e7cfcbcba' + '0851cee43fb59dafe3795a0380cf37ff' + 'aa83cf83017d2cacd5725dc966f3a366' + '1c224c7e234a211ad3e1d475bdd5954b' + '12dd2207f6afc1c353cf4b5add2ffcf5' + '7f471b216bca3ae09ea1ad71983f5d23' + '68336fdd31147a2727d15b6cf93a6bb8' + '3d9fb645869b7a8d2360fd8354c5abaf' + 'd737d82dfab24adc516c001238a4119f') + +package() { + # plugin + cd ${srcdir}/usr/share/zarafa-webapp/plugins/ + mkdir -p ${pkgdir}/usr/share/webapps/zarafa-webapp/plugins/ + cp -R ${_pkgname}* ${pkgdir}/usr/share/webapps/zarafa-webapp/plugins/ + rm -f ${pkgdir}/usr/share/webapps/zarafa-webapp/plugins/${_pkgname}/config.php + + ## precompress for nginx + ${srcdir}/compress-static ${pkgdir}/usr/share/webapps/zarafa-webapp/plugins/ + + # config + cd ${srcdir}/etc/zarafa/webapp + mkdir -p ${pkgdir}/etc/webapps/zarafa-webapp/plugins/${_pkgname}/ + + ## config mains + cp config-${_pkgname}.php ${pkgdir}/etc/webapps/zarafa-webapp/plugins/${_pkgname}/config.php + ln -s /etc/webapps/zarafa-webapp/plugins/${_pkgname}/config.php ${pkgdir}/usr/share/webapps/zarafa-webapp/plugins/${_pkgname}/config.php + + ## perform settings + # convert windows line break to unix: http://stackoverflow.com/questions/11680815/removing-windows-newlines-on-linux-sed-vs-awk + sed -i -e $'s/\r//' ${pkgdir}/etc/webapps/zarafa-webapp/plugins/${_pkgname}/config.php + + ## config examples + cp ${pkgdir}/etc/webapps/zarafa-webapp/plugins/${_pkgname}/config.php ${pkgdir}/etc/webapps/zarafa-webapp/plugins/${_pkgname}/config.example.php +} diff --git a/compress-static b/compress-static new file mode 100755 index 000000000000..1dda2f4699b8 --- /dev/null +++ b/compress-static @@ -0,0 +1,34 @@ +#!/bin/bash + +LOCATION=$1 +FILES="htm|css|html|js" + +process() { + FILE="$1" + + if [ -f "$FILE".gz ] + then + FILE_ORIG=$(stat -c %Y "$FILE") + FILE_GZIP=$(stat -c %Y "$FILE".gz) + if [ $FILE_ORIG -gt $FILE_GZIP ] + then + rm "$FILE".gz + gzip -k -9 "$FILE" + if [ "$DEBUG" == 1 ] + then + echo "Deleted old .gz and created new one at: $FILE.gz" + sleep $SLEEP_DELAY + fi + else + if [ "$DEBUG" == 1 ] + then + echo "Skipping - Already up to date: $FILE.gz" + fi + fi + else + gzip -k -9 "$FILE" + echo "Created new: $FILE.gz" + fi +} +export -f process +find $LOCATION -type f -regextype posix-extended -regex '.*\.('$FILES')' -exec /bin/bash -c 'process "{}"' \;
\ No newline at end of file |