aboutsummaryrefslogblamecommitdiffstats
path: root/community/py3-qrcode/APKBUILD
blob: 067576a30fe08c8d792956732a9713db0d8ab27b (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                               
                  
               
          
        
                                 

                                                  
                      

                            
                
                          

                                                                                                          
 


                                                               
         
                              


           
                                                               
 
                                                                               

 
                                                                                                                                                                
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-qrcode
_pkgname=qrcode
pkgver=6.1
pkgrel=2
pkgdesc="QR code image generator"
url="https://github.com/lincolnloop/python-qrcode"
arch="noarch"
license="BSD-3-Clause"
depends="py3-pillow py3-six"
makedepends="py3-setuptools"
options="!check"
subpackages="$pkgname-doc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-qrcode" # Backwards compatibility
provides="py-qrcode=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"

	install -D -m644 "$builddir"/doc/qr.1 "$pkgdir"/usr/share/man/man1/qr.1
}

sha512sums="4831553932442f5535cba15d5958a656b399112f0f379c28ad9b610c33d88ec6d0613dc7047a2315606e49f027bfd13a15a332ce86b80040d56e1114a0f62251  qrcode-6.1.tar.gz"