PKGBUILDs/aur/owncloud/PKGBUILD
2012-06-22 21:59:53 -04:00

36 lines
1.1 KiB
Bash

# Maintainer: Antonio Rojas <nqn1976 @ gmail.com>
# Based on owncloud-git PKGBUILD by Alexander Ovsyannikov
pkgname=owncloud
pkgver=4.0.2
pkgrel=3
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
md5sums=('7934ebe0b086110c7ee9858fa3ae4018'
'b22b1f45421a13b772dd0b7617e62c83')
package() {
# install license
install -d $pkgdir/usr/share/licenses/$pkgname
cp $srcdir/$pkgname/COPYING-* $pkgdir/usr/share/licenses/$pkgname
# install project
install -d -o http -g http $pkgdir/srv/http
cp -a $srcdir/$pkgname $pkgdir/srv/http/
chown -R http:http $pkgdir/srv/http/*
# install apache .conf file
install -d $pkgdir/etc/httpd/conf/extra
install -m 644 $srcdir/owncloud.conf $pkgdir/etc/httpd/conf/extra/
}