diff options
-rw-r--r-- | pcr/django-cms/PKGBUILD | 26 | ||||
-rw-r--r-- | pcr/python-django-cms/PKGBUILD | 33 |
2 files changed, 33 insertions, 26 deletions
diff --git a/pcr/django-cms/PKGBUILD b/pcr/django-cms/PKGBUILD deleted file mode 100644 index 555c818d0..000000000 --- a/pcr/django-cms/PKGBUILD +++ /dev/null @@ -1,26 +0,0 @@ -# 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> - -pkgname=django-cms -pkgver=2.2 -pkgrel=1 -pkgdesc="CMS framework based on Django" -arch=('any') -url="http://www.django-cms.org/" -license=('BSD') -depends=('python2' 'django' 'python-south' 'python-imaging' 'django-mptt' 'python2-html5lib' 'django-classy-tags' 'django-sekizai') -source=(http://pypi.python.org/packages/source/d/$pkgname/$pkgname-$pkgver.tar.gz) - -build() { - cd "$srcdir/$pkgname-$pkgver" - python2 setup.py build -} - -package() { - cd "$srcdir/$pkgname-$pkgver" - python2 setup.py install --root="$pkgdir/" --install-data=/usr/share/$pkgname --optimize=1 - #install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE -} - diff --git a/pcr/python-django-cms/PKGBUILD b/pcr/python-django-cms/PKGBUILD new file mode 100644 index 000000000..7f9e5bf8e --- /dev/null +++ b/pcr/python-django-cms/PKGBUILD @@ -0,0 +1,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 +} |