summaryrefslogtreecommitdiff
path: root/pcr/python2-qrencode/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/python2-qrencode/PKGBUILD')
-rw-r--r--pcr/python2-qrencode/PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/pcr/python2-qrencode/PKGBUILD b/pcr/python2-qrencode/PKGBUILD
new file mode 100644
index 000000000..9661db1bc
--- /dev/null
+++ b/pcr/python2-qrencode/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: ValHue <vhuelamo at gmail dot com>
+# https://github.com/ValHue/AUR-PKGBUILDs
+#
+# Contributor: sevkin <vsevolod at balashov dot name>
+
+_python=python2
+_name=qrencode
+pkgname="${_python}-${_name}"
+pkgver=1.01
+pkgrel=4
+pkgdesc="Encodes QR-codes."
+arch=('i686' 'x86_64')
+url="http://pypi.python.org/pypi/${_name}"
+license=('Apache')
+depends=("${_python}" 'qrencode')
+makedepends=('gcc')
+source=("http://pypi.python.org/packages/source/q/${_name}/${_name}-${pkgver}.tar.gz")
+md5sums=('5a1addd4d6e6412116fcfeb9661831a9')
+
+build() {
+ cd "${_name}-${pkgver}"
+ export PYTHON="/usr/bin/${_python}"
+ ${_python} setup.py build
+}
+
+package() {
+ cd "${_name}-${pkgver}"
+ ${_python} setup.py install --root="${pkgdir}" --prefix="/usr" --optimize=1
+}