# Maintainer: Frederik "Freso" S. Olesen # Contributor: Bastien Traverse # Contributor: Samantha Baldwin # Contributor: Caleb Reach # Contributor: Felix Yan # Contributor: Karol "Kenji Takahashi" Woźniak # Contributor: Mantas Mikulėnas # Based on community/morituri and aur/morituri-git PKGBUILDs pkgname=whipper-git pkgver=0.5.1.r82.ga34942e pkgrel=2 pkgdesc='A Unix CD ripper aiming for accuracy over speed -- forked from morituri' arch=('any') url='https://github.com/whipper-team/whipper' license=('GPL3') depends=( 'accuraterip-checksum' # for accuraterip-checksum calculation 'cddb-py' # for showing but not using disc info if not in MusicBrainz (issue #28) 'cdrdao' # for session, TOC, pregap, and ISRC extraction 'flac' # for reading flac files 'libcdio-paranoia' # for the actual ripping 'libsndfile' # for reading wav files 'mutagen' # for metadata handling 'python2-musicbrainzngs' # for metadata lookup 'python2-pycdio' # for storing drive identification in config file 'python2-requests' # for retrieving AccurateRip database entries 'python2-setuptools' # for plugin support 'sox' # for track peak detection' ) makedepends=( 'git' 'python2-gobject2' ) checkdepends=( 'python2-twisted' ) provides=("${pkgname%-git}") conflicts=("${pkgname%-git}") source=("git+${url}.git") md5sums=('SKIP') pkgver() { cd "$srcdir/${pkgname%-git}" # Cutting off "v" prefix present in the git tag git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } check() { cd "$srcdir/${pkgname%-git}" python2 -m unittest discover } package() { cd "$srcdir/${pkgname%-git}" python2 setup.py install --root="${pkgdir}"/ --optimize=1 }