# Maintainer: getzze pkgname=('python-django-dynamic-preferences' 'python2-django-dynamic-preferences') pkgver=1.8.1 pkgrel=1 pkgdesc="Dynamic global and instance settings for your django project" arch=(any) url="https://github.com/EliotBerriot/django-dynamic-preferences" license=('BSD') options=(!emptydirs) source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz") sha256sums=('06628ce33787535cf4c1ec6eb1b110e9f2fb87f8c52af5277b9b7e47f290909f') makedepends=('python-setuptools' 'python2-setuptools') package_python-django-dynamic-preferences() { depends=('python-wheel' 'python-django' 'python-persisting-theory') cd "$srcdir/django-dynamic-preferences-$pkgver" install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" python setup.py install --root="$pkgdir/" --optimize=1 } package_python2-django-dynamic-preferences() { depends=('python2-wheel' 'python2-django' 'python2-persisting-theory') cd "$srcdir/django-dynamic-preferences-$pkgver" install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" python2 setup.py install --root="$pkgdir/" --optimize=1 }