50 lines
2.1 KiB
Bash
50 lines
2.1 KiB
Bash
name='python3-setuptools-rust'
|
|
version='1.12.0'
|
|
release='6'
|
|
desc='Setuptools plugin for Rust support'
|
|
desc_ru='Плагин Setuptools для поддержки Rust'
|
|
homepage='https://github.com/PyO3/setuptools-rust'
|
|
maintainer='Evgeny Khramov <xpamych@yandex.ru>'
|
|
maintainer_ru='Евгений Храмов <xpamych@yandex.ru>'
|
|
architectures=('all')
|
|
license=('MIT')
|
|
provides=('setuptools-rust')
|
|
conflicts=('setuptools-rust')
|
|
|
|
deps=('python3' 'python3-setuptools' 'python3-semantic-version')
|
|
deps_alt=('python3' 'python3-module-setuptools' 'python3-module-semantic-version')
|
|
deps_arch=('python' 'python-setuptools' 'python-semantic-version')
|
|
deps_debian=('python3' 'python3-setuptools' 'python3-semantic-version')
|
|
deps_fedora=("${deps[@]}")
|
|
deps_redos=("${deps[@]}")
|
|
deps_rhel=("${deps[@]}")
|
|
deps_rosa=("${deps[@]}")
|
|
deps_alpine=('python3' 'py3-setuptools' 'py3-semantic-version')
|
|
|
|
build_deps=('python3' 'python3-pip' 'python3-build' 'python3-installer' 'python3-setuptools' 'python3-setuptools-scm' 'python3-wheel')
|
|
build_deps_alt=('python3' 'python3-module-pip' 'python3-module-build' 'python3-module-installer' 'python3-module-setuptools' 'python3-module-setuptools-scm' 'python3-module-wheel')
|
|
build_deps_arch=('python' 'python-pip' 'python-build' 'python-installer' 'python-setuptools' 'python-setuptools-scm' 'python-wheel')
|
|
build_deps_debian=('python3' 'python3-pip' 'python3-build' 'python3-installer' 'python3-setuptools' 'python3-setuptools-scm' 'python3-wheel')
|
|
build_deps_fedora=("${build_deps[@]}")
|
|
build_deps_redos=("${build_deps[@]}")
|
|
build_deps_rhel=("${build_deps[@]}")
|
|
build_deps_rosa=("${build_deps[@]}")
|
|
build_deps_alpine=('python3' 'py3-pip' 'py3-build' 'py3-installer' 'py3-setuptools' 'py3-setuptools-scm' 'py3-wheel')
|
|
|
|
sources=("https://files.pythonhosted.org/packages/source/s/setuptools-rust/setuptools_rust-${version}.tar.gz")
|
|
checksums=('d94a93f0c97751c17014565f07bdc324bee45d396cd1bba83d8e7af92b945f0c')
|
|
|
|
build() {
|
|
cd "$srcdir/setuptools_rust-${version}"
|
|
python -m build --wheel --no-isolation
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/setuptools_rust-${version}"
|
|
python -m installer --destdir="$pkgdir" --prefix=/usr dist/*.whl
|
|
}
|
|
|
|
files() {
|
|
files-find-lib
|
|
}
|