blob: e1037863d93cc3fb7b96c30a358f50e504b5a591 (
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
67
68
|
# Maintainer: j.r <j.r@jugendhacker.de>
pkgbase=youplay
pkgname=(youplay-base youplay-gtk3 youplay-gtk4 youplay-pyqt6 youplay-qt6)
pkgver=0.46
pkgrel=4
pkgdesc="Search, download and play music from YouTube."
arch=(any)
url="https://codeberg.org/ralfhersel/youplay"
license=('GPL3')
makedepends=(desktop-file-utils gtk3 pyside6 python-gobject python-pyqt6)
source=("${pkgbase}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
"0001-Change-paths-for-packaging.patch")
md5sums=('f8626746b01f50aacc8531512d5cb39c'
'8c827adb9d808cf9c255fb577a731258')
prepare() {
cd "${pkgbase}"
patch -p1 -i "${srcdir}/0001-Change-paths-for-packaging.patch"
sed -e "s/@@gui@@/gtk3/g" youplay.sh > youplay-gtk3.sh
sed -e "s/@@gui@@/gtk4/g" youplay.sh > youplay-gtk4.sh
sed -e "s/@@gui@@/pyqt6/g" youplay.sh > youplay-pyqt6.sh
sed -e "s/@@gui@@/qt6/g" youplay.sh > youplay-qt6.sh
}
package_youplay-base() {
depends=(mpv ffmpeg python-mpv yt-dlp)
cd "${pkgbase}"
install -Dm755 youplay.py "${pkgdir}/usr/share/${pkgbase}/${pkgbase}.py"
install -Dm644 youplay.svg "${pkgdir}/usr/share/${pkgbase}/${pkgbase}.svg"
}
package_youplay-gtk3() {
depends=(youplay-base gtk3 python-gobject)
cd "${pkgbase}"
install -Dm755 youplay-gtk3.sh "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 -t "${pkgdir}/usr/share/${pkgbase}/" youplay_gtk3.py
}
package_youplay-gtk4() {
depends=(youplay-base gtk4 libadwaita)
provides=(youplay)
conflicts=(youplay)
cd "${pkgbase}"
install -Dm755 youplay-gtk4.sh "${pkgdir}/usr/bin/${pkgname}"
install -Dm755 youplay-gtk4.sh "${pkgdir}/usr/bin/${pkgbase}"
install -Dm644 -t "${pkgdir}/usr/share/${pkgbase}/" youplay_gtk4.py
desktop-file-install --dir="${pkgdir}/usr/share/applications" youplay.desktop
}
package_youplay-pyqt6() {
depends=(youplay-base python-pyqt6)
cd "${pkgbase}"
install -Dm755 youplay-pyqt6.sh "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 -t "${pkgdir}/usr/share/${pkgbase}/" youplay_pyqt6.py
}
package_youplay-qt6() {
depends=(youplay-base pyside6)
cd "${pkgbase}"
install -Dm755 youplay-qt6.sh "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 -t "${pkgdir}/usr/share/${pkgbase}/" youplay_qt6.py
}
|