summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aa2003c587b6abfb468f2589a526247f8c9c9d88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Contributor: xsmile <sascha_r AT gmx DOT de>
# Maintainer: max-k <max-k AT post DOT com>
pkgname=pydio
pkgver=8.2.4
pkgrel=1
pkgdesc='Sync & share solution, formerly AjaXplorer'
arch=('any')
url='https://pydio.com'
license=('AGPL3')
depends=('php>=5.5.9'
         'php-gd>=5.5.9'
         'php-intl>=5.5.9')
optdepends=('mariadb: MySQL database back end'
            'php-apcu: to use caching'
            'php-imap: to browse mailboxes over IMAP and POP3 (access.imap)'
            'libssh2: to manage files over SFTP (access.sftp)'
            'pecl-ssh2: to manage files over SFTP (access.sftp)'
            'smbclient: to mount SAMBA shares (access.smb)'
            'zip: to create and modify zipfiles (action.powerfs)'
            'ghostscript: to generate thumbnails (editor.imagick)'
            'imagemagick: to generate thumbnails (editor.imagick)'
            'librsync: to compute checksums/deltas and apply patches using rdiff (meta.filehasher)'
            'pecl-rsync: to compute checksums/deltas and apply patches using rdiff (meta.filehasher)'
            'git: to use Git-based versioning (meta.git)'
            'pear-versioncontrol-git: to use Git-based versioning (meta.git)'
            'udevil: to mount filesystems (meta.mount)')
options=('!strip')
install="${pkgname}.install"
_srcbase="https://download.${pkgname}.com/pub/core/archives"
source=("${_srcbase}/${pkgname}-core-${pkgver}.tar.gz"
        "${pkgname}.install")
sha256sums=('ba9d4d26ece43f240d09bd092ad0320aaf288283dd2245e9a1c52c8cf50a725b'
            '78321bb235918578a95d42947fd5a3f0287ecc43910a10dde49e24b1bb47bb65')

package() {
  cd "${srcdir}/${pkgname}-core-${pkgver}"

  local _INSTDIR="${pkgdir}/usr/share/webapps/${pkgname}"
  install -d "${_INSTDIR}"
  cp -r .htaccess core plugins *.php robots.txt "${_INSTDIR}/"

  local _CONFDIR="${pkgdir}/etc/webapps/${pkgname}"
  install -d "${_CONFDIR}"
  cp -r conf/* "${_CONFDIR}/"
  ln -s "/etc/webapps/${pkgname}" "${_INSTDIR}/conf"

  local _DATADIR="${pkgdir}/var/lib/${pkgname}"
  install -d "${_DATADIR}"
  cp -r data/* "${_DATADIR}/"
  ln -s "/var/lib/${pkgname}" "${_INSTDIR}/data"
  chgrp -R 33 "${_DATADIR}"
  chmod -R 770 "${_DATADIR}"

  local _DOCDIR="${pkgdir}/usr/share/doc/${pkgname}"
  install -d "${_DOCDIR}"
  install -Dm644 *.sample "${_DOCDIR}/"
}