[arch-commits] Commit in python-django-modeltranslation/repos/community-staging-any (2 files)

Evangelos Foutras foutrelis at archlinux.org
Tue Jul 31 19:56:01 UTC 2018


    Date: Tuesday, July 31, 2018 @ 19:56:00
  Author: foutrelis
Revision: 366134

archrelease: copy trunk to community-staging-any

Added:
  python-django-modeltranslation/repos/community-staging-any/PKGBUILD
    (from rev 366133, python-django-modeltranslation/trunk/PKGBUILD)
Deleted:
  python-django-modeltranslation/repos/community-staging-any/PKGBUILD

----------+
 PKGBUILD |   75 ++++++++++++++++++++++---------------------------------------
 1 file changed, 28 insertions(+), 47 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-07-31 19:49:38 UTC (rev 366133)
+++ PKGBUILD	2018-07-31 19:56:00 UTC (rev 366134)
@@ -1,47 +0,0 @@
-# $Id$
-# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
-
-pkgbase=python-django-modeltranslation
-pkgname=('python-django-modeltranslation' 'python2-django-modeltranslation')
-pkgver=0.12.2
-pkgrel=2
-pkgdesc='Translates Django models using a registration approach'
-arch=('any')
-url='https://github.com/deschler/django-modeltranslation'
-license=('BSD')
-makedepends=('python-setuptools' 'python2-setuptools')
-source=("django-modeltranslation-${pkgver}.tar.gz::https://github.com/deschler/django-modeltranslation/archive/${pkgver}.tar.gz")
-sha256sums=('cc17012514941689f62de943bb06c91bd96fe994b7548a80f504aa8f20f01a41')
-
-prepare() {
-  cp -r {,python-}django-modeltranslation-${pkgver}
-  mv {,python2-}django-modeltranslation-${pkgver}
-}
-
-build() {
-  for py in python{,2}; do
-    pushd ${py}-django-modeltranslation-${pkgver}
-    ${py} setup.py build
-    popd
-  done
-}
-
-package_python-django-modeltranslation() {
-  depends=('python-django')
-
-  cd python-django-modeltranslation-${pkgver}
-
-  python setup.py install --root="${pkgdir}" --optimize='1'
-  install -Dm 644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/python-django-modeltranslation/
-}
-
-package_python2-django-modeltranslation() {
-  depends=('python2-django')
-
-  cd python2-django-modeltranslation-${pkgver}
-
-  python2 setup.py install --root="${pkgdir}" --optimize='1'
-  install -Dm 644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/python2-django-modeltranslation/
-}
-
-# vim: ts=2 sw=2 et:

Copied: python-django-modeltranslation/repos/community-staging-any/PKGBUILD (from rev 366133, python-django-modeltranslation/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-07-31 19:56:00 UTC (rev 366134)
@@ -0,0 +1,28 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgname=python-django-modeltranslation
+pkgver=0.12.2
+pkgrel=2
+pkgdesc='Translates Django models using a registration approach'
+arch=('any')
+url='https://github.com/deschler/django-modeltranslation'
+license=('BSD')
+depends=('python-django')
+makedepends=('python-setuptools')
+source=("django-modeltranslation-${pkgver}.tar.gz::https://github.com/deschler/django-modeltranslation/archive/${pkgver}.tar.gz")
+sha256sums=('cc17012514941689f62de943bb06c91bd96fe994b7548a80f504aa8f20f01a41')
+
+build() {
+  cd django-modeltranslation-${pkgver}
+  python3 setup.py build
+}
+
+package() {
+  cd django-modeltranslation-${pkgver}
+
+  python3 setup.py install --root="${pkgdir}" --optimize='1'
+  install -Dm 644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/python-django-modeltranslation/
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list