Skip to content

Instantly share code, notes, and snippets.

@NicoHood
Last active August 28, 2016 07:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NicoHood/23e5885be7f816f9f4be63c773122220 to your computer and use it in GitHub Desktop.
Save NicoHood/23e5885be7f816f9f4be63c773122220 to your computer and use it in GitHub Desktop.
python2-pyqrcode
# Maintainer: Adam Goldsmith <adam@adamgoldsmith.name>
# Contributer: NicoHood <aur {at} nicohood {dot} de>
pkgbase=python-pyqrcode
pkgname=('python-pyqrcode' 'python2-pyqrcode')
pkgver=1.2.1
pkgrel=2
arch=('any')
url="https://github.com/mnooner256/pyqrcode"
license=('GPL')
makedepends=('python-distribute' 'python2-distribute')
source=("https://pypi.python.org/packages/06/76/1aa11ac094c65005b5d8a042b8bd96d73d4e2c32d9a63a68b21278e4b7d2/PyQRCode-${pkgver}.zip")
sha512sums=('bb9239621d5a26a2bc302c1435c6ffccf4e48bb6ee8c52fde0302864f723f1458d5611932469ff35c85cb1eb8302f2f02b93d6ffac0faefb82d7f488471fa71e')
prepare() {
# Create a copy for the python2 package
cp -r PyQRCode-${pkgver} python2-PyQRCode-${pkgver}
}
package_python-pyqrcode() {
pkgdesc="A QR code generator written purely in Python3 with SVG, EPS, PNG and terminal output."
depends=('python')
cd "${srcdir}/PyQRCode-${pkgver}"
python setup.py install --root=${pkgdir} --optimize=1
}
package_python2-pyqrcode() {
pkgdesc="A QR code generator written purely in Python2 with SVG, EPS, PNG and terminal output."
depends=('python2')
cd "${srcdir}/python2-PyQRCode-${pkgver}"
python2 setup.py install --root=${pkgdir} --optimize=1
}
# vim:set ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment