Date: Sunday, April 9, 2023 @ 11:11:26
Author: dvzrv
Revision: 1443182
archrelease: copy trunk to community-staging-x86_64
Added:
maturin/repos/community-staging-x86_64/PKGBUILD
(from rev 1443181, maturin/trunk/PKGBUILD)
Deleted:
maturin/repos/community-staging-x86_64/PKGBUILD
----------+
PKGBUILD | 116 +++++++++++++++++++++++++++++++++++++++----------------------
1 file changed, 75 insertions(+), 41 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-04-09 11:11:07 UTC (rev 1443181)
+++ PKGBUILD 2023-04-09 11:11:26 UTC (rev 1443182)
@@ -1,41 +0,0 @@
-# Maintainer: David Runge <[email protected]>
-
-pkgname=maturin
-pkgver=0.14.17
-pkgrel=2
-pkgdesc="Build and publish crates with pyo3, rust-cpython and cffi bindings"
-url="https://github.com/PyO3/maturin"
-arch=(x86_64)
-license=(Apache)
-depends=(
- gcc-libs
- glibc
- rust
-)
-makedepends=(
- bzip2
- git
-)
-# disable LTO until ring can be built with it:
https://github.com/briansmith/ring/issues/1444
-options=(!lto)
-source=($url/archive/v$pkgver/$pkgname-v$pkgver.tar.gz)
-sha512sums=('d12503530b0d865b6b3c40e564742d0e798107102fb7167c137c1b0a4fa63bfad739320901cff15a680a09034aae553c3cd55cf0c8f1d3ed0fd96404bb93cbfe')
-b2sums=('4d0d2d5101a05017883b27dca270c3f3b84c77dd53f19db04c2b5a988b699f3b39b6b7a88c7ac02b5e322679f5509bdf68b5c5f27ec229816c394ebc5fb57fd8')
-
-prepare() {
- cd $pkgname-$pkgver
- cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
-}
-
-build() {
- cd $pkgname-$pkgver
- cargo build --frozen --release --all-features
-}
-
-package() {
- depends+=(libbz2.so)
-
- cd $pkgname-$pkgver
- install -vDm 755 target/release/maturin -t "$pkgdir/usr/bin/"
- install -vDm 644 {Changelog,README}.md -t "$pkgdir/usr/share/doc/$pkgname/"
-}
Copied: maturin/repos/community-staging-x86_64/PKGBUILD (from rev 1443181,
maturin/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-04-09 11:11:26 UTC (rev 1443182)
@@ -0,0 +1,75 @@
+# Maintainer: David Runge <[email protected]>
+
+pkgbase=maturin
+pkgname=(maturin python-maturin)
+pkgver=0.14.17
+pkgrel=4
+pkgdesc="Build and publish crates with pyo3, rust-cpython and cffi bindings"
+url="https://github.com/PyO3/maturin"
+arch=(x86_64)
+license=(Apache)
+makedepends=(
+ bzip2
+ gcc-libs
+ git
+ glibc
+ python-build
+ python-installer
+ python-setuptools
+ python-setuptools-rust
+ python-wheel
+ rust
+)
+# disable LTO until ring can be built with it:
https://github.com/briansmith/ring/issues/1444
+options=(!lto)
+source=($url/archive/v$pkgver/$pkgname-v$pkgver.tar.gz)
+sha512sums=('d12503530b0d865b6b3c40e564742d0e798107102fb7167c137c1b0a4fa63bfad739320901cff15a680a09034aae553c3cd55cf0c8f1d3ed0fd96404bb93cbfe')
+b2sums=('4d0d2d5101a05017883b27dca270c3f3b84c77dd53f19db04c2b5a988b699f3b39b6b7a88c7ac02b5e322679f5509bdf68b5c5f27ec229816c394ebc5fb57fd8')
+
+_pick() {
+ local p="$1" f d; shift
+ for f; do
+ d="$srcdir/$p/${f#$pkgdir/}"
+ mkdir -p "$(dirname "$d")"
+ mv "$f" "$d"
+ rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
+ done
+}
+
+prepare() {
+ cd $pkgname-$pkgver
+ cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+ cd $pkgname-$pkgver
+ python -m build --wheel --no-isolation
+}
+
+package_maturin() {
+ depends=(
+ bzip2
+ gcc-libs
+ glibc
+ rust
+ )
+
+ cd $pkgname-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -vDm 644 {Changelog,README}.md -t "$pkgdir/usr/share/doc/$pkgname/"
+
+ (
+ cd "$pkgdir"
+ _pick python-$pkgbase usr/lib
+ )
+}
+
+package_python-maturin() {
+ pkgdesc+=" - Python bindings"
+ depends=(
+ maturin=$pkgver
+ python
+ )
+
+ mv -v $pkgname/* "$pkgdir"
+}