summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ebd1efc925c000b1aba5a29d04a7eca71b3e3e64 (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
# Maintainer: Nils Czernia <nils@czserver.de>
_pkgname=roundcube-rcmcarddav
pkgname="${_pkgname}-git"
pkgver=59a6d00
pkgrel=1
pkgdesc="This plugin allows users to export their contacts via CardDAV"
arch=('any')
conflicts=('roundcube-carddav')
url="http://www.benjamin-schieder.de/carddav.html"
license=('GPL')
depends=('roundcubemail>=0.9.0')
source=("$pkgname::git+https://github.com/blind-coder/rcmcarddav.git")
md5sums=('SKIP')

pkgver() {
        cd ${srcdir}/${pkgname}
        git describe --always | sed 's|-|.|g'
}

package() {
  cd "${srcdir}/${pkgname}"
  _instdir=${pkgdir}/usr/share/webapps/roundcubemail/plugins/carddav
  install -dm755 ${_instdir}

  cp -r . "${_instdir}/"

  # fix all the 644 perms on files
  find ${_instdir} -type f -exec chmod 644 {} \;
}