blob: b1a585ee9dde7ca9bcb653c9c039403181e71d13 (
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: Joaquim Monteiro <joaquim dot monteiro at protonmail dot com>
pkgname=python-orjson-git
pkgver=3.10.1.r0.g632345a
pkgrel=2
pkgdesc="Fast, correct Python JSON library supporting dataclasses and datetimes (Git version)"
arch=(x86_64 i686 aarch64 armv7h)
url="https://github.com/ijl/orjson"
license=('Apache-2.0' 'MIT')
provides=('python-orjson')
conflicts=('python-orjson')
depends=('python')
makedepends=('git' 'python-installer' 'python-maturin' 'rust')
source=("git+https://github.com/ijl/orjson.git")
sha512sums=('SKIP')
pkgver() {
cd orjson
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd orjson
maturin build --release --strip
}
package() {
cd orjson
install -Dm644 LICENSE-MIT "$pkgdir/usr/share/licenses/$pkgname/LICENSE-MIT"
python -m installer --destdir="$pkgdir" target/wheels/*.whl
}
|