blob: 072cf3f69946da59563c54678a76a811719476b4 (
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
|
pkgname=songfetch
pkgver=1.0.3
pkgrel=1
pkgdesc="A Linux CLI tool that displays current song info (ASCII art requires python-ascii_magic from AUR)"
arch=('any')
url="https://github.com/ekrlstd/songfetch"
license=('GPL-2.0')
depends=(
'python'
'python-pillow'
'playerctl'
)
makedepends=(
'python-build'
'python-installer'
'python-wheel'
'python-setuptools'
)
optdepends=(
'python-ascii_magic: The needed AUR package (or install via pip/pipx as ascii-magic). For ASCII album art'
'mpdris2: For MPD support'
'cmus: For cmus support'
'pipewire: For PipeWire audio backend'
'pulseaudio: For PulseAudio backend'
)
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('1de83af13b8a16a9281eb5d3952e3d5885e1ac54de49d7801747e8e9cb148828')
# old: 1b4c73283d7b5981b314ae3f77b6150947077aa505ab8869bb12bce0df6f7bf4
build() {
cd "$pkgname-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$pkgname-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl
# Install license
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|