blob: 3efb3aa12fe15bfbf753b213744bebd4d67ad045 (
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
|
# Maintainer: Mark Wagie <mark dot wagie at proton dot me>
pkgname=python-zxing-cpp
_name=${pkgname#python-}
pkgver=2.3.0
pkgrel=1
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-setuptools-scm'
)
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
}
build() {
cd "$_name/wrappers/python"
python setup.py build
}
package() {
cd "$_name/wrappers/python"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
|