blob: 3328640a1bba9f66a6d856e876f11a4acfd4c19f (
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
63
64
65
66
|
# Maintainer: Jacek Sobczak <metrokontakt24@gmail.com>
pkgname=radio-scheduler-git
pkgver=r19.6352443
pkgrel=2
pkgdesc="Scheduling and automatic playback of Internet radio stations (with MPD)"
arch=('any')
url="https://github.com/Daszkan/radio-scheduler"
license=('MIT')
install=radio-scheduler.install
depends=(
'python'
'pyside6'
'python-pyyaml'
'mpd'
'mpc'
)
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("git+${url}.git")
sha256sums=('SKIP')
pkgver() {
cd "${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "${pkgname%-git}"
install -dm755 "${pkgdir}/usr/share/radio-scheduler"
install -Dm644 *.{py,png,yaml} "${pkgdir}/usr/share/radio-scheduler/"
install -Dm755 install.sh "${pkgdir}/usr/share/radio-scheduler/install.sh"
install -Dm755 /dev/stdin "${pkgdir}/usr/bin/radio-scheduler-gui" <<EOF
#!/usr/bin/env bash
exec /usr/bin/python3 /usr/share/radio-scheduler/radio-scheduler-gui.py "\$@"
EOF
install -Dm755 /dev/stdin "${pkgdir}/usr/bin/radio-scheduler" <<EOF
#!/usr/bin/env bash
exec /usr/bin/python3 /usr/share/radio-scheduler/radio-scheduler.py "\$@"
EOF
install -Dm644 app_icon.png "${pkgdir}/usr/share/icons/hicolor/256x256/apps/radio-scheduler.png"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm755 install.sh "${pkgdir}/usr/bin/install-radio-scheduler.sh"
install -Dm644 /dev/stdin "${pkgdir}/usr/share/applications/radio-scheduler.desktop" <<EOF
[Desktop Entry]
Name=Radio Scheduler
GenericName=Internet Radio Scheduler
Comment=Automatic scheduling and playback of internet radio stations
Exec=/usr/bin/radio-scheduler-gui
Icon=radio-scheduler
Terminal=false
Type=Application
Categories=Audio;Player;Utility;
StartupNotify=true
EOF
}
|