desktop/owncloud/PKGBUILD

68 lines
2.9 KiB
Bash
Raw Normal View History

2014-12-24 08:13:38 +08:00
pkgname=owncloud
2015-10-30 20:35:35 +08:00
pkgver=8.2.0
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'
2015-04-28 07:46:24 +08:00
'php-ldap: LDAP authentication'
'php-intl'
2014-12-24 08:13:38 +08:00
'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')
categories=('network')
2015-04-28 07:46:24 +08:00
conflicts=('owncloud-git')
screenshot=(http://karlitschek.de/wp-content/uploads/2014/07/oc7.jpg)
source=("$pkgname-$pkgver.tar.gz::https://github.com/owncloud/core/archive/v$pkgver.tar.gz"
"$pkgname-3rdparty-$pkgver.tar.gz::https://github.com/owncloud/3rdparty/archive/v$pkgver.tar.gz"
2014-12-24 08:13:38 +08:00
'owncloud.conf')
options=('!strip')
install=owncloud.install
2015-10-30 20:35:35 +08:00
sha512sums=('467e53c21b1f7e0dfb9d913e318cc0407f151c351efd0f01adadbc69fd23c0b7b770a8757f074bd1be46096017b77686cfe2285e8d53eb3378e581ed632a0365'
'eb4069c50779d877019838fdfa143bcbc317a449eb5216fd789f2e6e62552cb05d0d4c813a6869357ce5fa751b84dc847d8296edc6a588624ea1f0f418591934'
2015-07-07 21:02:09 +08:00
'2d6ed0a120c58e88c6792204f2079965d50e510c8a13b51f0be18858c78997c662bec24fd8547704fad01a2a08667121d50fddd906e4ab617c4c14e34297cf49')
2014-12-24 08:13:38 +08:00
2015-04-28 07:46:24 +08:00
prepare() {
cd $srcdir/core-$pkgver
#sed -i "s|'appstoreenabled'.*|'appstoreenabled' => false,|" config/config.sample.php
rm -rf $srcdir/core-$pkgver/3rdparty
mv $srcdir/3rdparty-$pkgver $srcdir/core-$pkgver/3rdparty
}
2014-12-24 08:13:38 +08:00
package() {
2015-04-28 07:46:24 +08:00
cd $srcdir/core-$pkgver
2014-12-24 08:13:38 +08:00
# install license
2015-03-11 07:41:34 +08:00
install -d ${pkgdir}/usr/share/licenses/${pkgname}
2015-04-28 07:46:24 +08:00
cp ${srcdir}/core-$pkgver/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/
2015-04-28 07:46:24 +08:00
cp -a ${srcdir}/core-$pkgver ${pkgdir}/usr/share/webapps/${pkgname}
rm -rf ${pkgdir}/usr/share/webapps/${pkgname}/tests
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
}