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

Felix Yan felixonmars at archlinux.org
Sun Dec 25 16:44:05 UTC 2016


    Date: Sunday, December 25, 2016 @ 16:44:04
  Author: felixonmars
Revision: 201945

archrelease: copy trunk to community-staging-any

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

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

Copied: python-django-modeltranslation/repos/community-staging-any/PKGBUILD (from rev 201944, python-django-modeltranslation/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-25 16:44:04 UTC (rev 201945)
@@ -0,0 +1,47 @@
+# $Id$
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgbase=python-django-modeltranslation
+pkgname=('python-django-modeltranslation' 'python2-django-modeltranslation')
+pkgver=0.12
+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=('SKIP')
+
+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:



More information about the arch-commits mailing list