summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b389d9600e817f460e8e650a93669cfde60f49ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Maintainer: Christian Rebischke <Chris.Rebischke@archlinux.org>
# Maintainer: Bruno Pagani <archange@archlinux.org>
# Contributor: Frederik "Freso" S. Olesen <archlinux@freso.dk>
# Contributor: Bastien Traverse <firstname at lastname dot email>
# Contributor: Samantha Baldwin <fuhsaz+git@cryptic.li>
# Contributor: Caleb Reach <jtxx000@gmail.com>
# Contributor: Felix Yan <felixonmars@gmail.com>
# Contributor: Karol "Kenji Takahashi" Woźniak <kenji.sx>
# Contributor: Mantas Mikulėnas <grawity@gmail.com>

pkgname=whipper-cdparanoia-git
pkgver=0.8.0.r4.gaf06718
pkgrel=1
pkgdesc="Unix CD ripper aiming for accuracy over speed -- forked from morituri"
arch=(x86_64)
url="https://github.com/whipper-team/whipper"
license=(GPL3)
depends=(
    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
    )
makedepends=(python2-setuptools-scm git)
optdepends=(flac)
checkdepends=(python2-twisted)
conflicts=(morituri accuraterip-checksum)
provides=(accuraterip-checksum)
source=(git+${url}.git 'cdparanoia.diff')
sha512sums=(
    SKIP
    '937d743b73f7f0f5921e5e4234da4ddc5b4a9e69937df6f45ab741cf36dd8f65ca8cd42fba5ab03bdce1f139978295f1fb01add95ba027d3a1df845c55317878'
)

pkgver() {
    cd "$srcdir/whipper"
    # Cutting off "v" prefix present in the git tag
    git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
    cd "$srcdir/whipper"
    patch --forward --strip=1 --input="${srcdir}/cdparanoia.diff"
}

build() {
    cd whipper
    python2 setup.py build
}

package() {
    cd whipper
    python2 setup.py --version
    python2 setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build
}