summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2021-12-07 15:04:40 +0100
committerErich Eckner <git@eckner.net>2021-12-07 15:04:40 +0100
commit2943add7cbef89d16ac2d8547dc7075b2c8e3d62 (patch)
tree7df79e001df377d1e52f6418293b8a0b1e567027
parent0d5cff5d31fc2b97e0aaedf268f56f3b519b56c1 (diff)
downloadarchlinuxewe-2943add7cbef89d16ac2d8547dc7075b2c8e3d62.tar.xz
pyzbar -> python-pyzbar
-rw-r--r--python-pyzbar/PKGBUILD19
1 files changed, 10 insertions, 9 deletions
diff --git a/python-pyzbar/PKGBUILD b/python-pyzbar/PKGBUILD
index 44a4cb834..83fc5bfe2 100644
--- a/python-pyzbar/PKGBUILD
+++ b/python-pyzbar/PKGBUILD
@@ -2,29 +2,30 @@
# Contributor: Rafael Fontenelle <rafaelff@gnome.org>
# Maintainer: Erich Eckner <arch at eckner dot net>
-pkgname=pyzbar
+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/"
+url="https://github.com/NaturalHistoryMuseum/$_pkgname/"
depends=('python-pillow' 'zbar')
makedepends=('python-setuptools')
-source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+source=("$_pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('f51c82c2864f8e5a8d44f55853e027f8cbc592324b7afffa62100f2f9c54cbdb')
build() {
- cd "$srcdir/$pkgname-$pkgver"
+ cd "$srcdir/$_pkgname-$pkgver"
python setup.py build
}
package() {
- cd "$srcdir/$pkgname-$pkgver"
+ 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"
+ 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"
}