summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cdd70ded7cbf55995a9eafb96ff06ef9daac26bc (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
# Maintainer: XavierCLL <xavier.corredor.llano (a) gmail.com>

pkgname=spotify-ripper
pkgver=2.11
pkgrel=4
pkgdesc='Command-line ripper for Spotify, with a workaround for playlist emptying'
arch=('any')
url="https://github.com/colorizedmind/spotify-ripper"
license=('MIT')
depends=('python2' 'python2-spotify' 'mutagen' 'python2-colorama' 'python2-requests' 
         'python2-schedule' 'python2-spotipy' 'lame')
optdepends=('flac: Rip songs to lossless FLAC encoding' 'opus-tools: Rip songs to Opus encoding' 
            'vorbis-tools: Rip songs to Ogg Vorbis encoding' 'faac: Rip songs to AAC format with FreeAAC' 
            'libav-git-no-libs: Rip songs to Apple Lossless format' 'fdkaac: Rip songs to MP4/M4A format with Fraunhofer FDK AAC codec')
makedepends=('python2-setuptools')
source=("https://github.com/colorizedmind/spotify-ripper/archive/a044a2ee8ce9d42f43ec973a2480ec5f62598ae7.zip"
        "setup.py" "requirements.txt")
md5sums=('0365af83b46ad43c6331cb7887ed06f8'
         'c80e4dc2d35501cc87ef75deb954a3c0'
         '433ec722cffccd32c7e31807262f1128')

package() {
    cd $pkgname-*
    
    # fix imports
    cp ../setup.py .
    cp ../requirements.txt .
    
    python2 setup.py install --root="$pkgdir"
}