summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingbei Li2020-01-08 15:33:37 +0800
committerJingbei Li2020-01-08 15:33:37 +0800
commit5f7780161a1defda5803a939072350a923fed14c (patch)
tree053edfdc76d065c76c52d3b24d3da5d06a957eb7
parentb6c122cc3aa54bf6e297e6a4e9129633ab6308b6 (diff)
downloadaur-5f7780161a1defda5803a939072350a923fed14c.tar.gz
upgraded to 0.7.1
dropped python 2 support
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD36
2 files changed, 11 insertions, 47 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 95a945cd957..8827c6794b0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,11 @@
pkgbase = python-librosa
pkgdesc = Python library for music and audio analysis
- pkgver = 0.7.0
+ pkgver = 0.7.1
pkgrel = 1
url = http://librosa.github.io/librosa
arch = any
license = ISC
makedepends = python-setuptools
- makedepends = python2-setuptools
- source = https://github.com/librosa/librosa/archive/0.7.0.tar.gz
- md5sums = 3bb8ef0233fba3b663acab71a3627010
-
-pkgname = python-librosa
depends = python-numpy
depends = python-scipy
depends = python-six
@@ -22,17 +17,8 @@ pkgname = python-librosa
depends = python-decorator
depends = python-scikit-learn
depends = python-resampy
+ source = https://github.com/librosa/librosa/archive/0.7.1.tar.gz
+ md5sums = 99924d95ca5a41afc08ed883a347b606
-pkgname = python2-librosa
- depends = python2-numpy
- depends = python2-scipy
- depends = python2-six
- depends = python2-numba
- depends = python2-soundfile
- depends = python2-joblib
- depends = python2-matplotlib
- depends = python2-audioread
- depends = python2-decorator
- depends = python2-scikit-learn
- depends = python2-resampy
+pkgname = python-librosa
diff --git a/PKGBUILD b/PKGBUILD
index 6615326d7e1..7b5f10797ba 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,47 +1,25 @@
# Maintainer: Jingbei Li <i@jingbei.li>
# Contributer: Jose Riha <jose1711 gmail com>
-pkgbase=python-librosa
-pkgname=(python-librosa python2-librosa)
+
+pkgname=python-librosa
_pkgname=librosa
-pkgver=0.7.0
+pkgver=0.7.1
pkgrel=1
pkgdesc="Python library for music and audio analysis"
arch=('any')
url="http://librosa.github.io/librosa"
license=('ISC')
-makedepends=('python-setuptools' 'python2-setuptools')
+depends=('python-numpy' 'python-scipy' 'python-six' 'python-numba' 'python-soundfile' 'python-joblib' 'python-matplotlib' 'python-audioread' 'python-decorator' 'python-scikit-learn' 'python-resampy')
+makedepends=('python-setuptools')
source=("https://github.com/librosa/librosa/archive/${pkgver}.tar.gz")
-md5sums=('3bb8ef0233fba3b663acab71a3627010')
-
-prepare() {
- cd "$srcdir/"
- cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-py2"
- cd "${_pkgname}-${pkgver}-py2"
- sed -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
- -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
- -e "s|#![ ]*/bin/env python$|#!/usr/bin/env python2|" \
- -i $(find . -name '*.py')
-}
+md5sums=('99924d95ca5a41afc08ed883a347b606')
build() {
- msg "Building Python 2"
- cd "$srcdir/${_pkgname}-${pkgver}-py2"
- python2 setup.py build
-
- msg "Building Python 3"
cd "$srcdir/${_pkgname}-${pkgver}"
python setup.py build
}
-package_python2-librosa() {
- depends=('python2-numpy' 'python2-scipy' 'python2-six' 'python2-numba' 'python2-soundfile' 'python2-joblib' 'python2-matplotlib' 'python2-audioread' 'python2-decorator' 'python2-scikit-learn' 'python2-resampy')
- cd "$srcdir/${_pkgname}-${pkgver}-py2"
- python2 setup.py install --root="$pkgdir"/ --optimize=1
- install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
-}
-
-package_python-librosa() {
- depends=('python-numpy' 'python-scipy' 'python-six' 'python-numba' 'python-soundfile' 'python-joblib' 'python-matplotlib' 'python-audioread' 'python-decorator' 'python-scikit-learn' 'python-resampy')
+package() {
cd "$srcdir/${_pkgname}-${pkgver}"
python setup.py install --root="$pkgdir"/ --optimize=1
install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"