summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4ee7b25367b09492bbdab00956cf3e88c8503877 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
pkgname=python-django-qr-code-git
pkgver=1.2.0.r0.g8837861
pkgrel=1
pkgdesc="An application that provides tools for displaying QR codes on your Django site."

provides=("python-django-qr-code")
url="https://github.com/dprog-philippe-docourt/django-qr-code"
arch=("any")
license=("BSD")

source=("$pkgname::git+https://github.com/dprog-philippe-docourt/django-qr-code")
depends=("python-django>=2.2" "python-qrcode>=6.1" "python-pillow")
makepepends=("python-setuptools")


pkgver() {
	cd "$pkgname"
	git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() { 
	cd "$pkgname"
	python setup.py build 
}

package() {
	cd "$pkgname"
	python setup.py install --root="$pkgdir" --optimize=1 --skip-build
	
	install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/python-django-qr-code/LICENSE
}

md5sums=("SKIP")