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

Evangelos Foutras foutrelis at archlinux.org
Thu Nov 12 19:51:21 UTC 2020


    Date: Thursday, November 12, 2020 @ 19:51:21
  Author: foutrelis
Revision: 753655

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 753654, python-django-modeltranslation/trunk/PKGBUILD)

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

Copied: python-django-modeltranslation/repos/community-staging-any/PKGBUILD (from rev 753654, python-django-modeltranslation/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-12 19:51:21 UTC (rev 753655)
@@ -0,0 +1,38 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+
+pkgname=python-django-modeltranslation
+pkgver=0.16.0
+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=(
+  git
+  python-setuptools
+)
+_tag=c7e3cd64d938b1738899678d482e1cc9f34a38be
+source=(git+https://github.com/deschler/django-modeltranslation.git#tag=${_tag})
+sha256sums=(SKIP)
+
+pkgver() {
+  cd django-modeltranslation
+
+  git describe --tags | sed 's/^v//'
+}
+
+build() {
+  cd django-modeltranslation
+
+  python setup.py build
+}
+
+package() {
+  cd django-modeltranslation
+
+  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+  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