summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 19 insertions, 13 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 390c4313560..dd3d67faec6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,23 +1,29 @@
-# Maintainer: Alex Zose <alexander[dot]zosimidis[at]gmail[dot]com>
+# Contributor: Alex Zose <alexander[dot]zosimidis[at]gmail[dot]com>
+# Maintainer: Rafael Fontenelle <rafaelff@gnome.org>
-pkgname=('pyzbar')
+pkgname=pyzbar
pkgver=0.1.8
-pkgrel=1
+pkgrel=2
pkgdesc="A ctypes-based wrapper around the zbar barcode reader"
arch=('any')
license=('MIT')
url="https://github.com/NaturalHistoryMuseum/$pkgname/"
-depends=('zbar' 'python-setuptools')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/NaturalHistoryMuseum/$pkgname/archive/v$pkgver.tar.gz")
-sha512sums=('e186c7a2f29ec107f66b87a2901e128291747ef7a2159675f3170aef2a3a4b1f4cb4319da830d577c986e20abb3f2935e005361cc98857b0e1b880fb4cf40233')
+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() {
- mkdir -p $pkgdir/usr/share/doc/$pkgname/
- mkdir -p $pkgdir/usr/share/licenses/$pkgname/
+ cd "$srcdir/$pkgname-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
- cd $srcdir/$pkgname-$pkgver
- python setup.py install --root=$pkgdir/
- install -m 644 $srcdir/$pkgname-$pkgver/{CHANGELOG,DEVELOPING}.md $pkgdir/usr/share/doc/$pkgname/
- install -m 644 $srcdir/$pkgname-$pkgver/README.rst $pkgdir/usr/share/doc/$pkgname/
- install -m 644 $srcdir/$pkgname-$pkgver/LICENSE.txt $pkgdir/usr/share/licenses/$pkgname/
+ 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"
}