mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
63 lines
2.3 KiB
Bash
63 lines
2.3 KiB
Bash
# Maintainer: Jeff Huang <s8321414[at]gmail[dot]com>
|
|
# Origin maintainer on CCR: Giuseppe Calà <jiveaxe@gmail.com>
|
|
|
|
pkgname=owncloud
|
|
pkgver=8.0.2
|
|
pkgrel=1
|
|
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
|
|
md5sums=('9b10eb45b7923fcb46b89cf0ad149097'
|
|
'0505493fccf49dcaa0760268c290c138')
|
|
|
|
conflicts=('owncloud-git')
|
|
screenshot=(http://karlitschek.de/wp-content/uploads/2014/07/oc7.jpg)
|
|
|
|
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/
|
|
|
|
# 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
|
|
}
|
|
|