From d679a199f8c3c942fee336e8e396793615824eaf Mon Sep 17 00:00:00 2001 From: Joffrey Date: Fri, 15 Jun 2018 14:21:25 +0000 Subject: [PATCH] Initial commit --- .SRCINFO | 22 ++++++++++++++++++++++ PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 00000000000..ee34419b27a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = python-django-constance + pkgdesc = Dynamic Django settings + pkgver = 2.2.0 + pkgrel = 1 + url = https://github.com/jazzband/django-constance + arch = any + license = BSD + makedepends = python-setuptools + makedepends = python2-setuptools + source = https://github.com/jazzband/django-constance/archive/2.2.0.tar.gz + sha256sums = 4e2bb9a19cbc91eccda13464e2f9db810eadb42672bb4eb1c2160e1fe5ede45f + +pkgname = python2-django-constance + depends = python2-django + optdepends = python2-django-picklefield: Database support + optdepends = python2-redis: Redis support + +pkgname = python-django-constance + depends = python-django + optdepends = python-django-picklefield: Database support + optdepends = python-redis: Redis support + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 00000000000..0280d7389f3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Joffrey + +pkgname=('python2-django-constance' 'python-django-constance') +pkgbase='python-django-constance' +pkgver=2.2.0 +pkgrel=1 +pkgdesc='Dynamic Django settings' +arch=('any') +url='https://github.com/jazzband/django-constance' +license=('BSD') +makedepends=('python-setuptools' 'python2-setuptools') +source=("https://github.com/jazzband/django-constance/archive/$pkgver.tar.gz") +sha256sums=('4e2bb9a19cbc91eccda13464e2f9db810eadb42672bb4eb1c2160e1fe5ede45f') + +package_python-django-constance() { + depends=('python-django') + optdepends=( + 'python-django-picklefield: Database support' + 'python-redis: Redis support' + ) + cd "$srcdir/django-constance-$pkgver" + install -Dm644 './LICENSE' "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + python './setup.py' install --root="$pkgdir" --optimize=1 +} + +package_python2-django-constance() { + depends=('python2-django') + optdepends=( + 'python2-django-picklefield: Database support' + 'python2-redis: Redis support' + ) + cd "$srcdir/django-constance-$pkgver" + install -Dm644 './LICENSE' "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + python2 './setup.py' install --root="$pkgdir" --optimize=1 +}