mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
59 lines
2.3 KiB
Bash
59 lines
2.3 KiB
Bash
# Contribution from Arch:
|
|
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
|
|
|
pkgname=nextcloud
|
|
pkgver=14.0.2
|
|
pkgrel=1
|
|
pkgdesc="A cloud server to store your files centrally on a hardware controlled by you"
|
|
arch=('any')
|
|
url="https://nextcloud.com"
|
|
license=('AGPL')
|
|
depends=('php' 'php-gd')
|
|
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'
|
|
'php-ldap: LDAP authentication'
|
|
'php-intl'
|
|
'mariadb: to use the MySQL database backend'
|
|
'smbclient: to mount SAMBA shares'
|
|
'php-mcrypt'
|
|
'ffmpeg: file preview'
|
|
'libreoffice: file preview')
|
|
options=('!strip')
|
|
conflicts=('owncloud')
|
|
replaces=('owncloud')
|
|
install=${pkgname}.install
|
|
backup=('etc/webapps/nextcloud/apache.example.conf')
|
|
validpgpkeys=('28806A878AE423A28372792ED75899B9A724937A')
|
|
source=("https://download.nextcloud.com/server/releases/nextcloud-${pkgver}.tar.bz2"{,.asc}
|
|
'apache.example.conf'
|
|
'nextcloud.install')
|
|
sha256sums=('714325535a63af298bb144363452bc3b144273706540df14a128bf40d03b586e'
|
|
'SKIP'
|
|
'55b892adb86a67c2fa12d79f0980c6aea75aed5c6f6f78f2c2b5e5575a012067'
|
|
'3099e7f04a10d1b86e2f9252a66b0d7dca9836d19f32a128d5e35bb2e2077428')
|
|
|
|
package() {
|
|
# install project
|
|
install -d "$pkgdir"/usr/share/webapps/
|
|
cp -R "$srcdir"/${pkgname} "$pkgdir"/usr/share/webapps/.
|
|
|
|
# install apache config file
|
|
install -d "$pkgdir"/etc/webapps/${pkgname}
|
|
install -m 644 "$srcdir"/apache.example.conf "$pkgdir"/etc/webapps/${pkgname}
|
|
|
|
# move config to /etc
|
|
install -d "$pkgdir"/etc/webapps/${pkgname}
|
|
mv "$pkgdir"/usr/share/webapps/${pkgname}/config "$pkgdir"/etc/webapps/${pkgname}/config
|
|
chown -R http:http "$pkgdir"/etc/webapps/${pkgname}
|
|
ln -s /etc/webapps/${pkgname}/config "$pkgdir"/usr/share/webapps/${pkgname}/config
|
|
chown -R root:http "$pkgdir"/usr/share/webapps/${pkgname}
|
|
|
|
find "$pkgdir"/usr/share/webapps/${pkgname} -type f -exec chmod 0644 {} \;
|
|
find "$pkgdir"/usr/share/webapps/${pkgname} -type d -exec chmod 0755 {} \;
|
|
|
|
chmod a+x "$pkgdir"/usr/share/webapps/${pkgname}/occ
|
|
|
|
# install -Dm0644 "$srcdir"/nextcloud.hook "$pkgdir"/usr/share/libalpm/hooks/nextcloud.hook
|
|
}
|