# $Id$ # Maintainer: Sergej Pupykin # Maintainer: Antonio Rojas # Based on owncloud-git PKGBUILD by Alexander Ovsyannikov pkgname=owncloud pkgver=7.0.0 pkgrel=2 pkgdesc="A cloud server to store your files centrally on a hardware controlled by you" arch=('any') url="http://owncloud.org/" license=('GPL') depends=('php-gd') optdepends=('php-apache: to use the Apache web server' 'php-fpm: to use the nginx web server' 'php-sqlite: to use the SQLite database backend' 'php-pgsql: to use the PostgreSQL database backend' 'mariadb: to use the MySQL database backend' 'php-intl: to increase language translation performance' 'php-mcrypt: to increase file encryption performance' 'php-acpu: to enhance performance' 'php-xcache: to enhance performance' 'ffmpeg: file preview' 'libreoffice-common: file preview') makedepends=() options=('!strip') backup=('etc/webapps/owncloud/apache.example.conf') source=("http://download.owncloud.org/community/$pkgname-${pkgver}.tar.bz2"{,.asc} 'apache.example.conf') md5sums=('28cfdc99e8ee9350fe88430b4c7d62f2' 'SKIP' '64c6edf88bcbb37d063e4bf77b39237f') package() { # install license install -d ${pkgdir}/usr/share/licenses/${pkgname} cp ${srcdir}/${pkgname}/COPYING-* ${pkgdir}/usr/share/licenses/${pkgname} # install project install -d ${pkgdir}/usr/share/webapps/ cp -a ${srcdir}/${pkgname} ${pkgdir}/usr/share/webapps/ # install apache config file install -d ${pkgdir}/etc/webapps/${pkgname} install -m 644 ${srcdir}/apache.example.conf ${pkgdir}/etc/webapps/${pkgname} # move config to /etc mv ${pkgdir}/usr/share/webapps/${pkgname}/config ${pkgdir}/etc/webapps/${pkgname}/config chown -R http:http ${pkgdir}/etc/webapps/${pkgname}/config ln -s /etc/webapps/${pkgname}/config ${pkgdir}/usr/share/webapps/${pkgname}/config # own data/ and apps/ directories by web server default user chown -R http:http ${pkgdir}/usr/share/webapps/${pkgname}/{data,apps} }