desktop/owncloud/PKGBUILD

63 lines
2.3 KiB
Bash
Raw Normal View History

2014-12-24 08:13:38 +08:00
# Maintainer: Jeff Huang <s8321414[at]gmail[dot]com>
# Origin maintainer on CCR: Giuseppe Calà <jiveaxe@gmail.com>
pkgname=owncloud
2015-03-11 07:41:34 +08:00
pkgver=8.0.2
2015-02-10 14:19:24 +08:00
pkgrel=1
2014-12-24 08:13:38 +08:00
pkgdesc="A cloud server to store your files centrally on a hardware controlled by you"
arch=('x86_64')
url="http://owncloud.org/"
license=('GPL')
depends=('php-gd' 'php-intl')
optdepends=('php-apache: to use the Apache web server'
'nginx: to use the nginx web server'
'php-sqlite: to use the SQLite database backend'
'php-pgsql: to use the PostgreSQL database backend'
'php-apcu'
'php-xcache'
'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')
makedepends=()
categories=('network')
backup=('etc/httpd/conf/extra/owncloud.conf')
source=("http://download.owncloud.org/community/${pkgname}-${pkgver}.tar.bz2"
'owncloud.conf')
options=('!strip')
install=owncloud.install
2015-03-11 07:41:34 +08:00
md5sums=('9b10eb45b7923fcb46b89cf0ad149097'
2014-12-24 08:13:38 +08:00
'0505493fccf49dcaa0760268c290c138')
conflicts=('owncloud-git')
screenshot=(http://karlitschek.de/wp-content/uploads/2014/07/oc7.jpg)
package() {
# install license
2015-03-11 07:41:34 +08:00
install -d ${pkgdir}/usr/share/licenses/${pkgname}
cp ${srcdir}/${pkgname}/COPYING-* ${pkgdir}/usr/share/licenses/${pkgname}
2014-12-24 08:13:38 +08:00
# install project
2015-03-11 07:41:34 +08:00
install -d ${pkgdir}/usr/share/webapps/
cp -a ${srcdir}/${pkgname} ${pkgdir}/usr/share/webapps/
2014-12-24 08:13:38 +08:00
2015-03-11 07:41:34 +08:00
# install apache config file
install -d ${pkgdir}/etc/webapps/${pkgname}
install -m 644 ${srcdir}/owncloud.conf ${pkgdir}/etc/webapps/${pkgname}
# move config to /etc
mv ${pkgdir}/usr/share/webapps/owncloud/config ${pkgdir}/etc/webapps/${pkgname}/config
chown -R http:http ${pkgdir}/etc/webapps/${pkgname}
ln -s /etc/webapps/${pkgname}/config ${pkgdir}/usr/share/webapps/owncloud/config
chown -R root:http ${pkgdir}/usr/share/webapps/${pkgname}
find ${pkgdir}/usr/share/webapps/owncloud -type f -exec chmod 0644 {} \;
find ${pkgdir}/usr/share/webapps/owncloud -type d -exec chmod 0755 {} \;
# find ${pkgdir}/etc/webapps/owncloud -type f -print0 | xargs -0 chmod 0640
# find ${pkgdir}/etc/webapps/owncloud -type d -print0 | xargs -0 chmod 0750
2014-12-24 08:13:38 +08:00
}