summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c033b2feba4e09d0e05f743070d68a4d8a5d7e8f (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
# Contributor: Jonatan R. Fischer <jonafischer at gmail dot com>
pkgname=python-zcbor
_name=${pkgname#python-}
pkgver=0.8.1
pkgrel=1
pkgdesc="zcbor is a low footprint CBOR library in the C language (C++ compatible), tailored for use in microcontrollers."
arch=('any')
url="https://github.com/NordicSemiconductor/zcbor"
license=('Apache 2.0')
depends=('python' 'python-cbor2' 'python-yaml' 'python-regex')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools' 'python-setuptools-scm')
optdepends=('python-pyelftools' 'python-pyserial')

source=("${_name}-$pkgver.tar.gz::https://github.com/NordicSemiconductor/zcbor/releases/download/$pkgver/${_name}-$pkgver.tar.gz")
sha256sums=('53763faf7b418732ba6c69ccc5da8acd2edb2c7c80ce0a466793d52bda70ecf9')

build() {
  cd $_name-$pkgver
  python -m build --wheel --no-isolation
}

package() {
  cd $_name-$pkgver
  python -m installer --destdir="$pkgdir" dist/*.whl
}