blob: 394d62842cba1c48ff45cb0e34faba2ce92a0a8c (
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
|
# Maintainer: David P. <megver83@parabola.nu>
_python="python2"
_name="qr-tools"
_subname="qrtools"
_ubuntur="0~23~ubuntu16.10.1"
pkgname="${_python}-${_subname}"
pkgver="1.4"
pkgrel="1"
pkgdesc="A high level library for reading and generating QR codes."
url="https://launchpad.net/qr-tools"
arch=('any')
license=('GPL3')
depends=("${_python}" "${_python}-pillow" "zbar" 'qrencode')
provides=("${pkgname}")
source=("https://launchpad.net/~${_name}-developers/+archive/ubuntu/daily/+files/python-${_subname}_${pkgver}-${_ubuntur}.tar.gz")
sha256sums=('dcbaaf10204696fff7c028415803247df1c8b99d3e1c21950144c14b1b5f8cfb')
build() {
cd "python-${_subname}-${pkgver}"
sed -i 's|env python|env python2|' "${_subname}.py"
}
package() {
cd "python-${_subname}-${pkgver}"
install -d ${pkgdir}/usr/lib/python2.7/site-packages
install -m 644 qrtools.py ${pkgdir}/usr/lib/python2.7/site-packages
}
# vim:set ts=4 sw=2 ft=sh et:
|