summaryrefslogtreecommitdiff
path: root/python-pyzbar
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-12-07 15:00:47 +0100
committerErich Eckner <git@eckner.net>2021-12-07 15:00:47 +0100
commit0d5cff5d31fc2b97e0aaedf268f56f3b519b56c1 (patch)
tree9eacd4c5c69cfdc0ef6e3dd582192c32cf386c84 /python-pyzbar
parentfc9322ad1e9045aed981096ef34fd7b9e6de873a (diff)
downloadarchlinuxewe-0d5cff5d31fc2b97e0aaedf268f56f3b519b56c1.tar.xz
python-pyzbar new
Diffstat (limited to 'python-pyzbar')
-rw-r--r--python-pyzbar/PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/python-pyzbar/PKGBUILD b/python-pyzbar/PKGBUILD
new file mode 100644
index 000000000..44a4cb834
--- /dev/null
+++ b/python-pyzbar/PKGBUILD
@@ -0,0 +1,30 @@
+# Contributor: Alex Zose <alexander[dot]zosimidis[at]gmail[dot]com>
+# Contributor: Rafael Fontenelle <rafaelff@gnome.org>
+# Maintainer: Erich Eckner <arch at eckner dot net>
+
+pkgname=pyzbar
+pkgver=0.1.8
+pkgrel=1
+pkgdesc="A ctypes-based wrapper around the zbar barcode reader"
+arch=('any')
+license=('MIT')
+url="https://github.com/NaturalHistoryMuseum/$pkgname/"
+depends=('python-pillow' 'zbar')
+makedepends=('python-setuptools')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha256sums=('f51c82c2864f8e5a8d44f55853e027f8cbc592324b7afffa62100f2f9c54cbdb')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ python setup.py build
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+
+ install -Dm644 CHANGELOG.md "$pkgdir/usr/share/doc/$pkgname/CHANGELOG.md"
+ install -Dm644 DEVELOPING.md "$pkgdir/usr/share/doc/$pkgname/DEVELOPING.md"
+ install -Dm644 README.rst "$pkgdir/usr/share/doc/$pkgname/README.rst"
+ install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
+}