### this file is sourced not run
PKGVER=1.4.0 # any newer and we have to update rustc
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=python-maturin-$PKGVER.tar.gz
MD5SUM=4298a860747a5cdb5ee59804e7e6a2e5
SRC_URL=https://files.pythonhosted.org/packages/source/m/maturin/maturin-$PKGVER.tar.gz
BUNDLE=

SLACKREQ='python3-setuptools_rust rustc'
SLACKDESC="python3-maturin: python3-maturin $PKGVER (Another python builder)
python3-maturin: 
python3-maturin: Build and publish crates with pyo3, cffi and uniffi bindings as well 
python3-maturin: as rust binaries as python packages with minimal configuration. It 
python3-maturin: supports building wheels for python 3.8+ on windows, linux, mac and 
python3-maturin: freebsd, can upload them to pypi and has basic pypy and graalpy 
python3-maturin: support.
python3-maturin: 
python3-maturin: https://pypi.org/project/maturin/
python3-maturin: 
python3-maturin: 
"

### default pkg_download
### default pkg_prepare

### package
pkg_packageb() {
	:
}

### build
pkg_build() {
	echo nameserver 8.8.8.8 > /etc/resolv.conf
	# load rust compiler
	. /etc/profile.d/rustc.sh &&

	pkg_build_pip3modules maturin &&
	pkg_build_slackdesc &&

	rm -f /etc/resolv.conf
}
