blob: 83fc5bfe2f0679e7813d0dbe28b2ec9010948464 (
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
|
# 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=python-pyzbar
_pkgname=${pkgname#*-}
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"
}
|