aur/PKGBUILD

36 lines
1.2 KiB
Bash
Raw Normal View History

2018-06-15 16:21:25 +02:00
# Maintainer: Joffrey <j-off@live.fr>
pkgname=('python2-django-constance' 'python-django-constance')
pkgbase='python-django-constance'
2019-03-20 11:41:04 +01:00
pkgver='2.4.0'
2019-11-14 23:36:16 +01:00
pkgrel=2
2018-06-15 16:21:25 +02:00
pkgdesc='Dynamic Django settings'
arch=('any')
url='https://github.com/jazzband/django-constance'
license=('BSD')
makedepends=('python-setuptools' 'python2-setuptools')
2019-03-20 11:55:35 +01:00
source=("$pkgbase-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
2019-03-20 11:41:04 +01:00
sha256sums=('29e81a2b97a660aa08212029ae664da054cb9c83763ce35b2c959b0b0414202b')
2018-06-15 16:21:25 +02:00
package_python-django-constance() {
depends=('python-django')
2018-06-15 22:34:04 +02:00
optdepends=(
'python-django-picklefield: Database support'
'python-redis: Redis support'
)
cd "$srcdir/django-constance-$pkgver"
install -Dm644 './LICENSE' "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
2018-06-15 16:21:25 +02:00
python './setup.py' install --root="$pkgdir" --optimize=1
}
package_python2-django-constance() {
2018-06-15 22:34:04 +02:00
depends=('python2-django')
optdepends=(
'python2-django-picklefield: Database support'
'python2-redis: Redis support'
)
2018-06-15 16:21:25 +02:00
cd "$srcdir/django-constance-$pkgver"
2018-06-15 22:34:04 +02:00
install -Dm644 './LICENSE' "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
2018-06-15 16:21:25 +02:00
python2 './setup.py' install --root="$pkgdir" --optimize=1
}