# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=roundcubemail
pkgver=0.3
pkgrel=1
pkgdesc="a PHP web-based mail client"
arch=('any')
url="http://www.roundcube.net"
license=('GPL')
depends=('php')
optdepends=('php-fileinfo')
backup=('srv/http/roundcube/.htaccess' 'srv/http/roundcube/skins/default/images/roundcube_logo.png')
options=(force)
source=("http://downloads.sourceforge.net/sourceforge/roundcubemail/roundcubemail-$pkgver-stable.tar.gz")
md5sums=('741bb3dace2e2824c0cbb3e86142be5b')

build() {
  msg "Nothing to compile for $pkgname"
}

package() {
  _INSTDIR='/srv/http/roundcube'
  
  mkdir -p $pkgdir/$_INSTDIR
  
  cp -ra $srcdir/roundcubemail-${pkgver}-stable/* $pkgdir/$_INSTDIR/ 
  cat > .htaccess <<EOT
deny from all
allow from 127.0.0.0/8
EOT
}

# vim:set ts=2 sw=2 et:
