PKGBUILDs/aur/owncloud/PKGBUILD

41 lines
1.5 KiB
Bash
Raw Normal View History

2012-04-15 17:02:27 +00:00
# Maintainer: Antonio Rojas <nqn1976 @ gmail.com>
2011-05-17 21:54:33 +00:00
# Based on owncloud-git PKGBUILD by Alexander Ovsyannikov
2013-04-11 21:42:34 +00:00
# ALARM Maintainer: Tommaso Sardelli <lacapannadelloziotom [at] gmail [dot] com>
2013-02-21 01:52:13 +00:00
2011-05-17 21:54:33 +00:00
pkgname=owncloud
2013-11-09 19:03:59 +00:00
pkgver=5.0.13
2012-07-24 03:25:50 +00:00
pkgrel=1
2011-05-17 21:54:33 +00:00
pkgdesc="A cloud server to store your files centrally on a hardware controlled by you"
2012-04-15 17:02:27 +00:00
arch=('any')
2011-12-07 21:42:15 +00:00
url="http://owncloud.org/"
2011-05-17 21:54:33 +00:00
license=('GPL')
2013-01-24 22:45:03 +00:00
depends=('php-gd' 'php-intl')
2013-07-16 12:07:24 +00:00
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")
2011-05-17 21:54:33 +00:00
makedepends=()
2013-03-15 19:42:13 +00:00
source=("http://download.owncloud.org/community/$pkgname-$pkgver.tar.bz2" 'owncloud.conf')
2013-11-09 19:03:59 +00:00
if [[ -n $(which httpd 2> /dev/null) ]]; then
backup=('etc/httpd/conf/extra/owncloud.conf')
fi
2011-05-17 21:54:33 +00:00
install=owncloud.install
2013-11-09 19:03:59 +00:00
md5sums=('4ce4cf5de3fdf1f70666549c5ecfda7a'
'c1d49a3c0d8433bed6bffcd21ebb0064')
2011-05-17 21:54:33 +00:00
package() {
2012-06-23 01:59:53 +00:00
# install license
install -d $pkgdir/usr/share/licenses/$pkgname
cp $srcdir/$pkgname/COPYING-* $pkgdir/usr/share/licenses/$pkgname
2011-05-17 21:54:33 +00:00
# install project
2012-09-17 23:40:16 +00:00
install -d $pkgdir/usr/share/webapps/
cp -a $srcdir/$pkgname $pkgdir/usr/share/webapps/
2013-10-05 10:41:42 +00:00
chown -R http:http $pkgdir/usr/share/webapps/owncloud/{apps,config}
2011-05-17 21:54:33 +00:00
2013-11-09 19:03:59 +00:00
# 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
2011-05-17 21:54:33 +00:00
}