summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6d69b5111a2a9d57af0e476917b37385bd67cad1 (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
58
59
60
61
62
63
# Maintainer: Kazuki Sawada <kazuki@6715.jp>
# Contributor: William J. Bowman <aur@williamjbowman.com>

_pkgname=s3ql
pkgname=$_pkgname-git
pkgver=3.3.2.22.gfa48c94d
pkgrel=1
pkgdesc="A full-featured file system for online data storage."
arch=('i686' 'x86_64')
url="https://github.com/s3ql/s3ql/"
license=('GPL3')
depends=(
  'python'
  'python-cryptography'
  'python-defusedxml'
  'python-apsw'
  'python-trio'
  'python-pyfuse3'
  'python-dugong'
  'python-systemd'
  'python-requests'
  'python-google-auth'
  'python-google-auth-oauthlib'
)
makedepends=(
  'gcc'
  'cython'
  'python-sphinx'
  'texlive-latexextra'
)
provides=($_pkgname)
conflicts=($_pkgname)
replaces=($_pkgname-hg)
source=(git+https://github.com/s3ql/s3ql.git)
md5sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  git describe | sed 's/release-//; s/[_-]/./g'
}

build() {
  cd "$srcdir/$_pkgname"

  python setup.py build_cython
  python setup.py build_ext --inplace
  python setup.py build_sphinx
}

package() {
  cd "$srcdir/$_pkgname"

  python setup.py install --root="$pkgdir" --optimize=1

  install -d -m 755 "$pkgdir/usr/share/doc/$_pkgname"
  install    -m 744 doc/manual.pdf "$pkgdir/usr/share/doc/$_pkgname/manual.pdf"

  # Install the text versions of the docs and contrib. These can be recursive, so
  # `install' isn't particularly useful.
  cp -r contrib rst "$pkgdir/usr/share/doc/$_pkgname/"
  chown -R root:root "$pkgdir/usr/share/doc/$_pkgname/"
  find "$pkgdir/usr/share/doc/$_pkgname" -type f -exec chmod 'g-w,g+r,o-w,o+r' '{}' ';'
}