[arch-commits] Commit in python-django-modeltranslation/trunk (PKGBUILD)

Maxime Gauduin alucryd at archlinux.org
Thu Mar 12 09:14:52 UTC 2020


    Date: Thursday, March 12, 2020 @ 09:14:51
  Author: alucryd
Revision: 595078

upgpkg: python-django-modeltranslation 0.12.2-3

Modified:
  python-django-modeltranslation/trunk/PKGBUILD

----------+
 PKGBUILD |   26 +++++++++++++++-----------
 1 file changed, 15 insertions(+), 11 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-12 08:39:05 UTC (rev 595077)
+++ PKGBUILD	2020-03-12 09:14:51 UTC (rev 595078)
@@ -4,23 +4,27 @@
 pkgver=0.12.2
 pkgrel=3
 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')
+arch=(any)
+url=https://github.com/deschler/django-modeltranslation
+license=(BSD)
+depends=(python-django)
+makedepends=(
+  git
+  python-setuptools
+)
+source=(git+https://github.com/deschler/django-modeltranslation.git#tag=bb34e8cf96651ccd7a10b17f181eedb763c6cd0b)
+sha256sums=(SKIP)
 
 build() {
-  cd django-modeltranslation-${pkgver}
-  python3 setup.py build
+  cd django-modeltranslation
+
+  python setup.py build
 }
 
 package() {
-  cd django-modeltranslation-${pkgver}
+  cd django-modeltranslation
 
-  python3 setup.py install --root="${pkgdir}" --optimize='1'
+  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
   install -Dm 644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/python-django-modeltranslation/
 }
 



More information about the arch-commits mailing list