blob: 8d16cf9a75622598a52e6bb71713e1cd53d04ea4 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Maintainer: David Runge <dave@sleepmap.de>
# Contributor: Stefan Tatschner <stefan@sevenbyte.org>
pkgname=roundcube-rcmcarddav
_plugin_name=rcmcarddav
_name=carddav
pkgver=3.0.0
pkgrel=1
pkgdesc="CardDAV plugin for RoundCube Webmailer"
arch=('any')
url="https://github.com/blind-coder/rcmcarddav"
license=('GPL2')
depends=('roundcubemail')
backup=("etc/webapps/roundcubemail/plugins/${_name}/config.inc.php")
source=("https://github.com/blind-coder/${_plugin_name}/releases/download/v${pkgver}/${_name}-${pkgver}.tar.bz2")
sha512sums=('a9e87ebc747485f3c5804c95be2e09287597cf4acc729d1b774d6f4d9b16274658f5833b66a9fab1038ad334c7b7d19b9449f16f2e5f02e0d17c9f2e322f13e7')
prepare() {
mv -v "${_name}" "${pkgname}-${pkgver}"
}
package() {
cd "${pkgname}-${pkgver}"
# php and xml
install -vDm 644 *.{php,xml} \
-t "${pkgdir}"/usr/share/webapps/roundcubemail/plugins/"${_name}"
install -vDm 644 skins/classic/*.css -t \
"${pkgdir}/usr/share/webapps/roundcubemail/plugins/${_name}/skins/classic/"
# css
install -vDm 644 skins/larry/*.css \
-t "${pkgdir}/usr/share/webapps/roundcubemail/plugins/${_name}/skins/larry/"
install -vDm 644 localization/*.inc \
-t "${pkgdir}/usr/share/webapps/roundcubemail/plugins/${_name}/localization/"
# db migrations
install -vDm 644 dbmigrations/0000-dbinit/*.sql \
-t "${pkgdir}/usr/share/webapps/roundcubemail/plugins/${_name}/dbmigrations/0000-dbinit"
install -vDm 644 dbmigrations/0000-sample/*.sql \
-t "${pkgdir}/usr/share/webapps/roundcubemail/plugins/${_name}/dbmigrations/0000-sample"
install -vDm 644 dbmigrations/0001-categories/*.sql \
-t "${pkgdir}/usr/share/webapps/roundcubemail/plugins/${_name}/dbmigrations/0001-categories"
install -vDm 644 dbmigrations/0002-increasetextfieldlengths/*.sql \
-t "${pkgdir}/usr/share/webapps/roundcubemail/plugins/${_name}/dbmigrations/0002-increasetextfieldlengths"
install -vDm 644 dbmigrations/0003-fixtimestampdefaultvalue/*.sql \
-t "${pkgdir}/usr/share/webapps/roundcubemail/plugins/${_name}/dbmigrations/0003-fixtimestampdefaultvalue"
install -vDm 644 dbmigrations/0004-fixtimestampdefaultvalue/*.sql \
-t "${pkgdir}/usr/share/webapps/roundcubemail/plugins/${_name}/dbmigrations/0004-fixtimestampdefaultvalue"
# copy vendor files to plugin directory
cp -av vendor \
-t "${pkgdir}/usr/share/webapps/roundcubemail/plugins/${_name}/"
# configuration
install -vDm 644 config.inc.php.dist \
"${pkgdir}/etc/webapps/roundcubemail/plugins/carddav/config.inc.php"
ln -sv "/etc/webapps/roundcubemail/plugins/${_name}/config.inc.php" \
"${pkgdir}/usr/share/webapps/roundcubemail/plugins/${_name}/config.inc.php"
# docs
install -vDm 644 {ChangeLog,README.md} \
-t "${pkgdir}/usr/share/doc/${pkgname}/"
}
|