summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 186f404dcdb8f4cd7617c13a6e9199078260346f (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
_module='samplerate'
pkgname=python-$_module
_src_folder='samplerate-0.2.1'
pkgver='0.2.1'
pkgrel=1
pkgdesc="Monolithic python wrapper for libsamplerate based on pybind11 and NumPy"
url=""
depends=('python' 'libsndfile')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools-scm')
license=('custom:MIT License')
arch=('any')
source=("https://files.pythonhosted.org/packages/bf/9c/d8978b13b8af2f28fdc425e2893f7419d1d6429da1c6a850be83ad095d4f/samplerate-0.2.1.tar.gz")
sha256sums=('464d3574412024184fb7428ecbaa1b2e207bddf5fbc10a5d9ddc3fc1c7b7ab1e')

build() {
    cd "${srcdir}/${_src_folder}"
    python -m build --wheel --no-isolation
}

package() {

    cd "${srcdir}/${_src_folder}"
    python -m installer --destdir="${pkgdir}" dist/*.whl
}