diff options
author | Simon Sorg | 2023-10-14 00:16:01 +0200 |
---|---|---|
committer | Simon Sorg | 2023-10-14 00:16:01 +0200 |
commit | c899ddbd41c78e11b119b615892ddc154a9bf6d9 (patch) | |
tree | 633c92ff5d7621a019978c7f4f2347f100f85582 | |
download | aur-python-asteroid-filterbanks-git.tar.gz |
Add python asteroid filterbanks git version
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 42 |
2 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ac56991e4d0f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = python-asteroid-filterbanks-git + pkgdesc = The PyTorch-based audio source separation toolkit for researchers + pkgver = 0.4.0.ge15bb3f + pkgrel = 1 + url = https://asteroid-team.github.io/ + arch = any + license = MIT + makedepends = git + makedepends = python-build + makedepends = python-installer + makedepends = python-setuptools + makedepends = python-wheel + depends = python-numpy + depends = python-scipy + depends = python-pytorch + depends = python-librosa + provides = asteroid-filterbanks + conflicts = asteroid-filterbanks + source = asteroid-filterbanks::git+https://github.com/asteroid-team/asteroid-filterbanks + md5sums = SKIP + +pkgname = python-asteroid-filterbanks-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..857bbd961c9a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Simon Sorg <simon.sorg@student.hpi.de> +_pkgname=asteroid-filterbanks +pkgname=python-$_pkgname-git # '-bzr', '-git', '-hg' or '-svn' +pkgver=0.4.0.ge15bb3f +pkgrel=1 +pkgdesc="The PyTorch-based audio source separation toolkit for researchers" +arch=('any') +url="https://asteroid-team.github.io/" +license=('MIT') +depends=( + 'python-numpy' + 'python-scipy' + 'python-pytorch' + 'python-librosa' +) +makedepends=( + 'git' + 'python-build' + 'python-installer' + 'python-setuptools' + 'python-wheel' +) +provides=("$_pkgname") +conflicts=(${provides[@]}) +source=("$_pkgname"::"git+https://github.com/asteroid-team/asteroid-filterbanks") +md5sums=('SKIP') + +pkgver() { + cd "$_pkgname" + printf "%s" "$(git describe --tags | cut -d "-" -f 1,3 | sed 's/.*v//' | sed 's/-/./')" +} + +build() { + cd "$srcdir/$_pkgname" + python -m build --no-isolation --wheel +} + +package() { + cd "$srcdir/$_pkgname" + python -m installer --destdir="$pkgdir" dist/*.whl + install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" +} |