aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGalen Abell <galen@galenabell.com>2020-02-01 17:28:25 -0500
committerRasmus Thomsen <oss@cogitri.dev>2020-02-16 01:48:06 +0100
commit3ae5ae4e6321b113ef50cbf5fb5b5da65ec6a138 (patch)
treef350e8b2ef9efa1246a53b6c14d7414a5c418cf8
parentd5b82a71369809804305a69e6f773f276ec2f49a (diff)
downloadaports-3ae5ae4e6321b113ef50cbf5fb5b5da65ec6a138.tar.gz
aports-3ae5ae4e6321b113ef50cbf5fb5b5da65ec6a138.tar.bz2
aports-3ae5ae4e6321b113ef50cbf5fb5b5da65ec6a138.tar.xz
testing/whipper: new aport
https://github.com/whipper-team/whipper Python CD-DA ripper preferring accuracy over speed testing/
-rw-r--r--testing/whipper/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/testing/whipper/APKBUILD b/testing/whipper/APKBUILD
new file mode 100644
index 0000000000..48a30b133f
--- /dev/null
+++ b/testing/whipper/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: Galen Abell <galen@galenabell.com>
+# Maintainer: Galen Abell <galen@galenabell.com>
+pkgname=whipper
+pkgver=0.9.0
+pkgrel=0
+pkgdesc="python CD-DA ripper preferring accuracy over speed"
+url="https://github.com/whipper-team/whipper"
+arch="all !armv7 !x86" # TODO tests fail on armv7 and x86, ref whipper issue #429
+license="GPL-3.0-only"
+depends="
+ python3
+ libcdio-paranoia
+ cdrdao
+ gobject-introspection
+ py3-gobject3
+ py3-musicbrainzngs
+ py3-mutagen
+ py3-requests
+ py3-cdio
+ py3-discid
+ py3-ruamel.yaml
+ flac
+ sox
+"
+makedepends="python3-dev py3-wheel libsndfile-dev"
+checkdepends="py3-setuptools_scm py3-twisted"
+options="net"
+source="$pkgname-$pkgver.tar.gz::https://github.com/whipper-team/whipper/archive/v$pkgver.tar.gz"
+
+build() {
+ export SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver"
+
+ python3 setup.py build
+}
+
+check() {
+ # fix to locate accuraterip
+ local python_version=$(python3 -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+
+ PYTHONPATH="build/lib.linux-$CARCH-$python_version/" python3 -m unittest discover
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir" --skip-build
+}
+sha512sums="49e66ad2c6e8450199a53a28bb71725704daac86ce2cbf68080d4dee1c2357cf8367ddb4735a07f2ffe612d84f016661e5b6f94efa9d5a7d6b8cf56ee32b0ae7 whipper-0.9.0.tar.gz"