blob: 60069e834f9c37e13a6003f06b04cf3ceb9eb1ab (
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
32
33
34
|
# Maintainer: Marcin Kornat <rarvolt@gmail.com>
pkgname=python-barcode
pkgver=0.15.1
pkgrel=1
pkgdesc="Create standard barcodes with Python. No external modules needed."
arch=('any')
license=('MIT')
conflicts=()
provides=('python-barcode')
url="https://github.com/WhyNotHugo/python-barcode"
depends=('python')
optdepends=('python-pillow: generate images')
makedepends=(
'python-build'
'python-installer'
'python-wheel'
'git'
'python-setuptools-scm'
)
source=(
"${pkgname}-${pkgver}::git+https://github.com/WhyNotHugo/${pkgname}.git#tag=v${pkgver}"
)
sha256sums=('SKIP')
build() {
cd "${pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${pkgname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 LICENCE "${pkgdir}/usr/share/licenses/${pkgname}/LICENCE"
}
|