summaryrefslogtreecommitdiff
path: root/pcr/python-django-cms/PKGBUILD
blob: 7f9e5bf8ea7df07df4394b4829b9f4e0cbd064cf (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
# Contributor (Arch): Baptiste Jonglez <baptiste--aur at jonglez dot org>
# Contributor (Arch): Fabio Volpe <volpefabio@gmail.com>
# Contributor (Arch): Apkawa <apkawa@gmail.com>
# Maintainer : Parabola GNU / Linux-libre Aurélien Desbrières <aurelien@cwb.io>

# parabola changes and rationale:
#  - added replaces for previous pkgname 'django-cms' (2018-02-01)
#  - added makedepends: python-setuptools python2-setuptools

pkgname=("python-django-cms" "python2-django-cms")
pkgbase="python-django-cms"
pkgver=3.4.1
pkgrel=1
pkgdesc="An Advanced Django CMS"
url="https://django-cms.org"
arch=('any')
license=('BSD')
makedepends=('python-setuptools' 'python2-setuptools')
source=("$pkgname-$pkgver.tar.gz::https://github.com/divio/django-cms/archive/$pkgver.tar.gz")
md5sums=('458e98b6b83edc60088eb48edba16b84')
 
package_python-django-cms() {
    depends=("python-django" "python-django-classy-tags" "python-django-formtools" "python-treebeard" "python-django-sekizai" "python-djangocms-admin-style")
    cd django-cms-$pkgver
    python setup.py install --root="${pkgdir}/" --optimize=1
}

package_python2-django-cms() {
    depends=("python2-django" "python2-django-classy-tags" "python2-django-formtools" "python2-treebeard" "python2-django-sekizai" "python2-djangocms-admin-style")
    replaces=("django-cms")
    cd django-cms-$pkgver
    python setup.py install --root="${pkgdir}/" --optimize=1
}