summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8df5fbdd702f1ae8324f8c0896c265f66630318f (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
# Maintainer: William Di Luigi <williamdiluigi@gmail.com>
#
# https://github.com/wil93/aur/tree/master/cms-git

pkgname=cms-git
pkgver=1.3.0
pkgrel=2
pkgdesc="CMS, or Contest Management System, is a distributed system for running and (to some extent) organizing a programming contest."
arch=('any')
url="http://cms-dev.github.io/"
license=('AGPL3')
depends=(
  'postgresql' 'postgresql-libs' 'python2' 'python2-setuptools'
  'python2-tornado' 'python2-psycopg2' 'python2-sqlalchemy' 'python2-psutil'
  'python2-netifaces' 'python2-crypto' 'python2-pytz' 'python2-six'
  'iso-codes' 'shared-mime-info' 'python2-beautifulsoup3' 'python2-mechanize'
  'python2-mock' 'python2-requests' 'python2-werkzeug' 'python2-gevent'
  'python2-coverage' 'libcgroup' 'patool-py2'
)
optdepends=(
  'fpc: support for Pascal submissions'
  'sgi-stl-doc: support for STL documentation inside the contest'
  'python2-yaml: support for cmsMake (for tasks in the "italian format")'
)
makedepends=('git')
provides=('cms')
conflicts=('cms')

source=(
  'git://github.com/cms-dev/cms.git'
  'cms.patch'
)
sha256sums=(
  'SKIP'
  'edb4e5c5da138a4598d1c728e9e02041fcb0acfdb84911ba9aeefb85488fb323'
)

prepare() {
  cd "cms"
  patch -p1 -i $srcdir/cms.patch
  sed "s|MAKEPKG_INSTALL_ROOT|$pkgdir|g" -i setup.py
}

build() {
  cd "cms"
  git submodule update --init
  python2 setup.py build
}

package() {
  cd "cms"
  python2 setup.py install --prefix="/usr" --root="$pkgdir"
}