PKGBUILDs/aur/owncloud/PKGBUILD
2013-01-24 23:45:03 +01:00

37 lines
1.2 KiB
Bash

# Maintainer: Antonio Rojas <nqn1976 @ gmail.com>
# Based on owncloud-git PKGBUILD by Alexander Ovsyannikov
pkgname=owncloud
pkgver=4.5.6
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' 'php-intl')
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=('b494ce673c8d5a4061978d2e6cfbc401'
'7a08e1fee098615ea24fcdb1f4bd82d9')
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/
}