summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarrat2020-01-18 20:44:54 +0100
committerNarrat2020-01-18 20:44:54 +0100
commit9171f3da550569e6338e0f44b0f6920346cdc910 (patch)
tree9aaaa5c66566c964e546cda2a52b5486e3788670
parentd01c6da2489012ea681894b3b1be47d3780a81f7 (diff)
downloadaur-9171f3da550569e6338e0f44b0f6920346cdc910.tar.gz
update to 3.7.1
and update the PKGBUILD in case of Python guidelines as well fix the creation of the python2 package
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD34
2 files changed, 41 insertions, 11 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6d5fde55608..1ac02833f21 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,24 @@
pkgbase = python-django-cms
pkgdesc = An Advanced Django CMS
- pkgver = 3.4.1
+ pkgver = 3.7.1
pkgrel = 1
url = https://django-cms.org
arch = any
license = BSD
- source = python-django-cms-3.4.1.tar.gz::https://github.com/divio/django-cms/archive/3.4.1.tar.gz
- md5sums = 458e98b6b83edc60088eb48edba16b84
+ makedepends = python-django
+ makedepends = python-django-classy-tags
+ makedepends = python-django-formtools
+ makedepends = python-treebeard
+ makedepends = python-django-sekizai
+ makedepends = python-djangocms-admin-style
+ makedepends = python2-django
+ makedepends = python2-django-classy-tags
+ makedepends = python2-django-formtools
+ makedepends = python2-treebeard
+ makedepends = python2-django-sekizai
+ makedepends = python2-djangocms-admin-style
+ source = python-django-cms-3.7.1.tar.gz::https://github.com/divio/django-cms/archive/3.7.1.tar.gz
+ md5sums = 090687adebc1277639801bf53dae4600
pkgname = python-django-cms
depends = python-django
diff --git a/PKGBUILD b/PKGBUILD
index 364635f29c8..782fb948a29 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,22 +1,40 @@
-pkgname=("python-django-cms" "python2-django-cms")
+_name="django-cms"
pkgbase="python-django-cms"
-pkgver=3.4.1
+pkgname=("python-django-cms" "python2-django-cms")
+pkgver=3.7.1
pkgrel=1
pkgdesc="An Advanced Django CMS"
url="https://django-cms.org"
arch=('any')
license=('BSD')
+makedepends=("python-django" "python-django-classy-tags" "python-django-formtools" "python-treebeard" "python-django-sekizai" "python-djangocms-admin-style")
+makedepends+=("python2-django" "python2-django-classy-tags" "python2-django-formtools" "python2-treebeard" "python2-django-sekizai" "python2-djangocms-admin-style")
source=("$pkgname-$pkgver.tar.gz::https://github.com/divio/django-cms/archive/$pkgver.tar.gz")
-md5sums=('458e98b6b83edc60088eb48edba16b84')
-
+md5sums=('090687adebc1277639801bf53dae4600')
+
+
+prepare() {
+ cp -r $_name-$pkgver{,-py2}
+}
+
+build() {
+ cd $_name-$pkgver
+ python setup.py build
+
+ cd "$srcdir/$_name-$pkgver-py2"
+ python2 setup.py build
+}
+
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
+
+ cd $_name-$pkgver
+ python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
}
package_python2-django-cms() {
depends=("python2-django" "python2-django-classy-tags" "python2-django-formtools" "python2-treebeard" "python2-django-sekizai" "python2-djangocms-admin-style")
- cd django-cms-$pkgver
- python setup.py install --root="${pkgdir}/" --optimize=1
+
+ cd $_name-$pkgver-py2
+ python2 setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
}