summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8e4098399acbb771e17ec6e0b6d0abd5c16735bd (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
# Maintainer: ValHue <vhuelamo at gmail dot com>
#
# Contributor: ValHue <vhuelamo at gmail dot com>
#
_python="python2"
_name="qr-tools"
_subname="qrtools"
_ubuntur="0~30~ubuntu18.04.1"
pkgname="${_python}-${_subname}"
pkgver="1.4"
pkgrel="4"
pkgdesc="A high level library for reading and generating QR codes."
url="https://launchpad.net/qr-tools"
arch=('i686' 'x86_64')
license=('GPL3')
depends=("${_python}" "${_python}-pillow" "${_python}-zbar" 'qrencode')
provides=("${pkgname}")
source=("https://launchpad.net/~${_name}-developers/+archive/ubuntu/${_name}-stable/+sourcefiles/python-${_subname}/${pkgver}-${_ubuntur}/python-${_subname}_${pkgver}-${_ubuntur}.tar.gz")
sha256sums=('88d826e752bd3e3ee00244fc0713f8c21328543faf229c7aee9bdd9aac337ca7')

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: