[arch-commits] Commit in python-django-extensions (3 files)

Maxime Gauduin alucryd at archlinux.org
Wed Dec 14 13:52:20 UTC 2016


    Date: Wednesday, December 14, 2016 @ 13:52:19
  Author: alucryd
Revision: 199410

archrelease: copy trunk to community-any

Added:
  python-django-extensions/repos/
  python-django-extensions/repos/community-any/
  python-django-extensions/repos/community-any/PKGBUILD
    (from rev 199409, python-django-extensions/trunk/PKGBUILD)

----------+
 PKGBUILD |   57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

Copied: python-django-extensions/repos/community-any/PKGBUILD (from rev 199409, python-django-extensions/trunk/PKGBUILD)
===================================================================
--- repos/community-any/PKGBUILD	                        (rev 0)
+++ repos/community-any/PKGBUILD	2016-12-14 13:52:19 UTC (rev 199410)
@@ -0,0 +1,57 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Jeremy Audet <ichimonji10 at gmail.com>
+# Contributor: Dominik Kozaczko <dominik at kozaczko.info>
+# Contributor: Alper Kanat <alperkanat at raptiye.org>
+# Contributor: Apkawa <apkawa at gmail.com>
+# Contributor: Schnouki <thomas.jost at gmail.com>
+
+pkgbase=python-django-extensions
+pkgname=('python-django-extensions' 'python2-django-extensions')
+pkgver=1.7.5
+pkgrel=1
+pkgdesc='A collection of custom extensions for the Django Framework'
+arch=('any')
+url='http://github.com/django-extensions/django-extensions'
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+optdepends=('graphviz: graph_models extension')
+source=("django-extensions-${pkgver}.tar.gz::https://github.com/django-extensions/django-extensions/archive/${pkgver}.tar.gz")
+sha256sums=('2687304476e550513b04d9b8e6b643ca061c72f60e5372b04f483701dfb88f1e')
+
+prepare() {
+  cp -r {,python-}django-extensions-${pkgver}
+  mv {,python2-}django-extensions-${pkgver}
+}
+
+build() {
+  for py in python{,2}; do
+    pushd ${py}-django-extensions-${pkgver}
+    ${py} setup.py build
+    popd
+  done
+}
+
+package_python-django-extensions() {
+  depends=('python-django' 'python-six')
+  optdepends+=('python-werkzeug: runserver_plus extension'
+               'ipython: shell_plus extensions')
+
+  cd python-django-extensions-${pkgver}
+
+  python setup.py install --root="${pkgdir}" --optimize='1'
+  install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python-django-extensions/
+}
+
+package_python2-django-extensions() {
+  depends=('python2-django' 'python2-six')
+  optdepends+=('python2-werkzeug: runserver_plus extension'
+               'ipython2: shell_plus extensions')
+
+  cd python2-django-extensions-${pkgver}
+
+  python2 setup.py install --root="${pkgdir}" --optimize='1'
+  install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python2-django-extensions/
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list