PKGBUILDs/aur/owncloud/PKGBUILD
2013-11-09 20:03:59 +01:00

41 lines
1.5 KiB
Bash

# Maintainer: Antonio Rojas <nqn1976 @ gmail.com>
# Based on owncloud-git PKGBUILD by Alexander Ovsyannikov
# ALARM Maintainer: Tommaso Sardelli <lacapannadelloziotom [at] gmail [dot] com>
pkgname=owncloud
pkgver=5.0.13
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" "php-pgsql: to use the PostgreSQL database backend" "mariadb: to use the MySQL database backend" "smbclient: to mount SAMBA shares")
makedepends=()
source=("http://download.owncloud.org/community/$pkgname-$pkgver.tar.bz2" 'owncloud.conf')
if [[ -n $(which httpd 2> /dev/null) ]]; then
backup=('etc/httpd/conf/extra/owncloud.conf')
fi
install=owncloud.install
md5sums=('4ce4cf5de3fdf1f70666549c5ecfda7a'
'c1d49a3c0d8433bed6bffcd21ebb0064')
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/owncloud/{apps,config}
# install apache .conf file if apache is installed
if [[ -n $(which httpd 2> /dev/null) ]]; then
install -d $pkgdir/etc/httpd/conf/extra
install -m 644 $srcdir/owncloud.conf $pkgdir/etc/httpd/conf/extra/
fi
}