summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2c0e95eff2bec010372f96f6e95a333aac704568 (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
# Maintainer: profevine <lordehenry@gmail.com>
pkgname=legendary-lyrics
pkgver=1.3.0
pkgrel=1
pkgdesc="Terminal music visualizer for MPRIS players: album art, karaoke lyrics, audio bars"
arch=('any')
url="https://github.com/profevine/legendary-lyrics"
license=('MIT')
depends=(
    'python'
    'python-textual'
    'python-httpx'
    'python-pillow'
    'playerctl'
    'fontconfig'
)
optdepends=(
    'cava: real audio bar visualization'
    'ttf-font: large anti-aliased type for the title and karaoke lyrics'
)
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('958347fb366ced080d7cf5c247e988a12e4a9976a183dcf6ca05d995b793635f')

package() {
    cd "$pkgname-$pkgver"

    install -Dm644 legendary_lyrics.py \
        "$pkgdir/usr/lib/$pkgname/legendary_lyrics.py"

    install -Dm755 /dev/stdin \
        "$pkgdir/usr/bin/$pkgname" << 'EOF'
#!/bin/bash
exec /usr/bin/python3 /usr/lib/legendary-lyrics/legendary_lyrics.py "$@"
EOF

    install -Dm644 README.md \
        "$pkgdir/usr/share/doc/$pkgname/README.md"

    install -Dm644 LICENSE \
        "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}