[arch-commits] Commit in whipper/trunk (PKGBUILD)
Bruno Pagani
archange at archlinux.org
Thu Oct 31 18:18:00 UTC 2019
Date: Thursday, October 31, 2019 @ 18:17:59
Author: archange
Revision: 521634
upgpkg: whipper 0.8.0-1
Modified:
whipper/trunk/PKGBUILD
----------+
PKGBUILD | 67 +++++++++++++++++++++++++++++++++++++------------------------
1 file changed, 41 insertions(+), 26 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-10-31 18:17:24 UTC (rev 521633)
+++ PKGBUILD 2019-10-31 18:17:59 UTC (rev 521634)
@@ -1,4 +1,5 @@
-# Maintainer : Christian Rebischke <Chris.Rebischke at archlinux.org>
+# Maintainer: Christian Rebischke <Chris.Rebischke at archlinux.org>
+# Maintainer: Bruno Pagani <archange at archlinux.org>
# Contributor: Frederik "Freso" S. Olesen <archlinux at freso.dk>
# Contributor: Bastien Traverse <firstname at lastname dot email>
# Contributor: Samantha Baldwin <fuhsaz+git at cryptic.li>
@@ -8,38 +9,52 @@
# Contributor: Mantas Mikulėnas <grawity at gmail.com>
pkgname=whipper
-pkgver=0.7.3
+pkgver=0.8.0
pkgrel=1
-pkgdesc="A Unix CD ripper aiming for accuracy over speed -- forked from morituri"
-arch=('any')
+pkgdesc="Unix CD ripper aiming for accuracy over speed -- forked from morituri"
+arch=(x86_64)
url="https://github.com/whipper-team/whipper"
-license=('GPL3')
+license=(GPL3)
depends=(
- 'accuraterip-checksum' # for accuraterip-checksum calculation
- 'libcdio-paranoia' # for the actual ripping
- 'cdrdao' # for session, TOC, pregap, and ISRC extraction
- 'libsndfile' # for reading wav files (pulls in flac, also required for reading flac files)
- 'python2-mutagen' # for metadata handling
- 'python2-musicbrainzngs' # for metadata lookup
- 'python2-pycdio' # for storing drive identification in config file
- 'python2-setuptools' # for plugin support
- 'sox' # for track peak detection'
- 'python2-gobject2' # Bugfix FS#54074
- 'python2-requests'
+ libcdio-paranoia # for the actual ripping
+ cdrdao # for session, TOC, pregap, and ISRC extraction
+ libsndfile # for reading wav files (pulls in flac, also required for reading flac files)
+ python2-gobject
+ python2-mutagen # for metadata handling
+ python2-musicbrainzngs # for metadata lookup
+ python2-pycdio # for storing drive identification in config file
+ python2-requests
+ python2-setuptools # for plugin support
+ sox # for track peak detection'
+ python2-ruamel.yaml # for log output
)
-checkdepends=(
- 'python2-twisted'
- )
-conflicts=('morituri')
-source=("${pkgname}-v${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
-sha512sums=('ac96393471a6b4c40f5870f6e3183b65d43229314e2a1eacbf065c51ac61cbc772f2de3bde9f20ee1f7ffec427cd03c31f27df60eb6c621a699927646080c0ab')
+makedepends=(python2-setuptools-scm git)
+optdepends=(flac)
+checkdepends=(python2-twisted)
+conflicts=(morituri accuraterip-checksum)
+provides=(accuraterip-checksum)
+replaces=(accuraterip-checksum)
+_tag=bf381b51f46735d1142c8b9c427cbd5b38ec31fd # git rev-parse v${pkgver}
+source=(git+${url}.git#tag=${_tag})
+sha512sums=(SKIP)
+build() {
+ cd ${pkgname}
+ python2 setup.py build
+}
+
check() {
- cd "$srcdir/${pkgname}-${pkgver}"
- python2 -m unittest discover
+ cd ${pkgname}
+ # https://github.com/whipper-team/whipper/issues/420
+ sed -i 's|\\\.dev\[\\w\\\.\\+\]+|(\\.dev[\\w\\.+]+)?|' whipper/test/test_result_logger.py
+ # The accuraterip C extension needs to be in the python path
+ PYTHONPATH="build/lib.linux-${CARCH}-2.7/" python2 -m unittest discover
+ # https://github.com/whipper-team/whipper/issues/422
+ git checkout whipper/test/test_result_logger.py
}
package() {
- cd "$srcdir/${pkgname}-${pkgver}"
- python2 setup.py install --root="${pkgdir}"/ --optimize=1
+ cd ${pkgname}
+ python2 setup.py --version
+ python2 setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
}
More information about the arch-commits
mailing list