blob: f0e16821097ed78557a1ee57236251c92a4c03f6 (
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
|
# Maintainer: KokaKiwi <kokakiwi+aur@kokakiwi.net>
pkgname=python-rtoml
pkgver=0.12
pkgrel=1
pkgdesc="A better TOML library for python implemented in rust."
arch=('x86_64')
url="https://pypi.org/project/rtoml"
license=('MIT')
depends=(python)
makedepends=(cargo maturin python-installer)
source=("$pkgname-$pkgver.tar.gz::https://github.com/samuelcolvin/rtoml/archive/v$pkgver.tar.gz")
sha256sums=('3fb6d724df4d41cdd27dfb5235dc647af63974b180683fdb7e91f0259bbabc38')
b2sums=('5f733b6e9e19b3ab9bc8c6210395896bc86950bed7e4e4a7ac8dbe12beb36c64d9417093fdc6a49b78a6c862c971f2e00b417803967dbdbd54d9e94f1e79a2f2')
export RUSTUP_TOOLCHAIN=${RUSTUP_TOOLCHAIN:-stable}
prepare() {
cd "rtoml-$pkgver"
cargo fetch --locked
}
build() {
cd "rtoml-$pkgver"
CFLAGS="$CFLAGS -fPIC" \
maturin build --locked --release
}
package() {
cd "rtoml-$pkgver"
python -m installer --destdir="$pkgdir" target/wheels/*.whl
install -Dm0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|