blob: 78098e6210425c4b0287dc220dd44d0787f03c1c (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=python-zxing-cpp
_name=${pkgname#python-}
pkgver=2.3.0
pkgrel=2
pkgdesc="Python bindings for zxing-cpp"
arch=('x86_64')
url="https://github.com/zxing-cpp/zxing-cpp"
license=('Apache-2.0')
depends=(
'python'
'zxing-cpp'
)
makedepends=(
'cmake'
'git'
'pybind11'
'python-build'
'python-installer'
'python-setuptools-scm'
'python-wheel'
)
source=("git+https://github.com/zxing-cpp/zxing-cpp.git#tag=v$pkgver"
'git+https://github.com/zint/zint.git')
sha256sums=('1042010b960c29e6d7c5cd99e8c2a887cf84febb918abeb0405bcf12aaf8543c'
'SKIP')
prepare() {
cd "$_name"
git submodule init
git config submodule.zint.url "$srcdir/zint"
git -c protocol.file.allow=always submodule update
# We really do have the dependencies, however
# it can't find them...
sed -i '/cmake/d' wrappers/python/pyproject.toml
sed -i '/pybind11/d' wrappers/python/pyproject.toml
}
build() {
cd "$_name/wrappers/python"
python -m build --wheel --no-isolation
}
package() {
cd "$_name/wrappers/python"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|