PKGBUILDs/community/owncloud/PKGBUILD

48 lines
1.5 KiB
Bash
Raw Normal View History

2014-01-13 15:40:45 +00:00
# $Id$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
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
2014-01-13 15:40:45 +00:00
# Remove when bumped upstream.
2013-02-21 01:52:13 +00:00
2011-05-17 21:54:33 +00:00
pkgname=owncloud
2013-12-15 15:48:11 +00:00
pkgver=6.0.0.a
_pkgver=6.0.0a
2014-01-13 15:40:45 +00:00
pkgrel=2
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')
2014-01-13 15:40:45 +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'
'php-mcrypt'
'php-imagick: file preview'
'ffmpeg: file preview'
'libreoffice-common: file preview')
2011-05-17 21:54:33 +00:00
makedepends=()
2014-01-13 15:40:45 +00:00
options=('!strip')
source=("http://download.owncloud.org/community/$pkgname-$_pkgver.tar.bz2"
'apache.example.conf')
2013-12-12 18:17:01 +00:00
backup=('etc/webapps/owncloud/apache.example.conf')
2013-12-15 15:48:11 +00:00
md5sums=('63c2913aa8382f695d7ade5ad11e51b2'
2013-11-09 19:03:59 +00:00
'c1d49a3c0d8433bed6bffcd21ebb0064')
2011-05-17 21:54:33 +00:00
2014-01-13 15:40:45 +00:00
package() {
# install license
2012-06-23 01:59:53 +00:00
install -d $pkgdir/usr/share/licenses/$pkgname
cp $srcdir/$pkgname/COPYING-* $pkgdir/usr/share/licenses/$pkgname
2011-05-17 21:54:33 +00:00
2014-01-13 15:40:45 +00:00
# install project
install -d $pkgdir/usr/share/webapps/
2013-12-12 18:17:01 +00:00
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}
2014-01-13 15:40:45 +00:00
# install apache config file
2013-12-12 18:17:01 +00:00
install -d $pkgdir/etc/webapps/$pkgname
install -m 644 $srcdir/apache.example.conf $pkgdir/etc/webapps/$pkgname
2011-05-17 21:54:33 +00:00
}