blob: a53b171861482e869633e8ad3ac9794962794e5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
pkgname=roundcubemail-plugin-converse
_pkgname=roundcube-converse.js-xmpp-plugin
pkgver=0.8.3.0
pkgrel=1
pkgdesc='XMPP plugin for Roundcube Webmail based on converse.js'
arch=('any')
url="https://github.com/devurandom/${_pkgname}"
license=('MIT')
depends=('roundcubemail')
optdepends=()
source=("git+https://github.com/devurandom/roundcube-converse.js-xmpp-plugin.git#tag=v${pkgver}")
sha256sums=('65244f01ffece3104fa84ea12dbaf8f2da580bdb85e27e614ee1105cfe55cd9b')
makedepends=('git')
backup=("etc/webapps/roundcubemail/plugins/converse/config.inc.php")
package() {
finaldest="${pkgdir}/usr/share/webapps/roundcubemail/plugins"
finalconf="${pkgdir}/etc/webapps/roundcubemail/plugins/converse"
mkdir -p "$finaldest"
mkdir -p "$finalconf"
cp -a "${srcdir}/${_pkgname}" "$finaldest"
mv "${finaldest}/${_pkgname}" "${finaldest}/converse"
rm -rf "${finaldest}/converse/.git"*
cp "${srcdir}/${_pkgname}/config.inc.php.dist" "${finalconf}/config.inc.php"
ln -s "/etc/${finalconf##*/etc/}/config.inc.php" "${finaldest}/converse"
echo "To activate add 'converse' to \$rcmail_config['plugins'] in roundcube's config file and configure plugin in its config file"
}
|