summaryrefslogtreecommitdiff
path: root/pcr/owncloud/PKGBUILD
blob: 7861d09176cdd9e3bcd7e7ff95f0f94e0fdc9821 (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
# Contributor: Antonio Rojas <nqn1976 @ gmail.com>
# Based on owncloud-git PKGBUILD by Alexander Ovsyannikov
# Maintainer : Parabola GNU / Linux-libre Aurelien Desbrieres <aurelien@cwb.io>

pkgname=owncloud
pkgver=4.5.2
pkgrel=1
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-sqlite: to use the SQLite database backend" "mysql: to use the MySQL database backend")
makedepends=()
source=("http://owncloud.org/releases/$pkgname-$pkgver.tar.bz2" 'owncloud.conf')
backup=('etc/httpd/conf/extra/owncloud.conf')
install=owncloud.install

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/ 
  chown -R http:http $pkgdir/usr/share/webapps/* 
 
# install apache .conf file 
  install -d  $pkgdir/etc/httpd/conf/extra 
  install -m 644 $srcdir/owncloud.conf  $pkgdir/etc/httpd/conf/extra/ 
}