~roshless/PKGBUILDs

9896ab7f963c3e184f31e68c711b59fcdb0cee47 — Roshless 26 days ago bb0b66b + 06acc36
Add 'python-django-pglocks/' from commit '06acc36bb14ed01c5e84961e0d4f70bbb256fd94'

git-subtree-dir: python-django-pglocks
git-subtree-mainline: bb0b66be511f8fc3b0caa5f098d320aa952c40ba
git-subtree-split: 06acc36bb14ed01c5e84961e0d4f70bbb256fd94
2 files changed, 42 insertions(+), 0 deletions(-)

A python-django-pglocks/.SRCINFO
A python-django-pglocks/PKGBUILD
A python-django-pglocks/.SRCINFO => python-django-pglocks/.SRCINFO +15 -0
@@ 0,0 1,15 @@
pkgbase = python-django-pglocks
	pkgdesc = django-pglocks provides a useful context manager to manage PostgreSQL advisory locks
	pkgver = 1.0.4
	pkgrel = 2
	url = https://github.com/Xof/django-pglocks
	arch = any
	license = MIT
	makedepends = python-setuptools
	depends = python
	depends = python-django
	source = https://files.pythonhosted.org/packages/source/d/django-pglocks/django-pglocks-1.0.4.tar.gz
	md5sums = 4907244be5a47d0bc618ae31ab68a9f9

pkgname = python-django-pglocks


A python-django-pglocks/PKGBUILD => python-django-pglocks/PKGBUILD +27 -0
@@ 0,0 1,27 @@
# Maintainer: Roshless <pkg@roshless.com>

pkgname=python-django-pglocks
_name=${pkgname#python-}
pkgver=1.0.4
pkgrel=2
pkgdesc='django-pglocks provides a useful context manager to manage PostgreSQL advisory locks'
url='https://github.com/Xof/django-pglocks'
arch=('any')
license=('MIT')
depends=('python' 'python-django')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")

build() {
  cd $_name-$pkgver
  python setup.py build
}

package() {
  cd $_name-$pkgver
  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
  # Not even full license just some one line shit :/
  install -Dm644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname"
}

md5sums=('4907244be5a47d0bc618ae31ab68a9f9')