summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 056eefbc8e8ca4e28d04f4e17cf58eb58c18e10b (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
# Maintainer: John Regan <john@jrjrtech.com>

pkgname=pydio-sync-git
pkgrel=1
pkgver=r504.dd770f8
pkgdesc="Pydio Sync Client"
arch=('any')
url="http://pyd.io"
license=('GPL3')
depends=(
    'python2-pyzmq'
    'python2-appdirs'
    'python2-xmltodict'
    'python2-yaml'
    'python2-argh'
    'python2-keyring'
    'python2-pathlib'
    'python2-pathtools'
    'python2-pydispatcher'
    'python2-aniso8601'
    'python2-requests'
    'python2-watchdog'
    'python2-cffi'
    'python2-flask'
    'python2-flask-restful'
    'python2-six'
    'python2-pytz'
         )
# TODO
# python2-pytz is actually a req of python2-flask-restful
# python2-aniso8601 is a req of python2-flask-restful
makedepends=('git'
             'python2-setuptools')
provides=('pydio-sync')
conflicts=('pydio-sync')
source=('git://github.com/pydio/pydio-sync.git')
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/pydio-sync"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/pydio-sync"
  # this isn't god-damn nodejs
  sed -i 's/==/>=/' requirements.txt
  python2 setup.py build
}

package() {
  cd "${srcdir}/pydio-sync"
  python2 setup.py install --root=${pkgdir} --optimize=1

  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}