blob: 177f88a20d80b14458b8072594abfc3ffba5321b (
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
|
pkgname=astronciaiptv
pkgver=0.0.95
pkgrel=1
pkgdesc="IPTV player with EPG support"
arch=('any')
url="https://gitlab.com/astroncia/iptv"
license=('GPL3')
makedepends=('make')
depends=('python' 'qt6-base' 'mpv' 'python-pyqt6' 'python-pillow' 'python-gobject' 'python-unidecode' 'python-requests' 'python-chardet' 'python-setproctitle' 'ffmpeg')
optdepends=('yt-dlp: YouTube channel support')
source=(${url}/-/archive/${pkgver}/iptv-${pkgver}.tar.gz)
b2sums=('3a8245c74f50961872368822baeca056da570bbaf855cee7a4c15dca7a8dd2c245e1ad1f1966cf4862659c3b7af5a0c5846b4c21b8ed6d806566ae1c6f76b83b')
prepare() {
cd iptv-${pkgver}
sed -i "s/__DEB_VERSION__/${pkgver}/g" usr/lib/astronciaiptv/astroncia_iptv.py
}
build() {
cd iptv-${pkgver}
make
}
package() {
cd iptv-${pkgver}
install -D -t "${pkgdir}"/usr/bin usr/bin/astronciaiptv
install -Dm644 -t "${pkgdir}"/usr/lib/astronciaiptv usr/lib/astronciaiptv/astroncia_iptv.py
install -Dm644 -t "${pkgdir}"/usr/share/applications usr/share/applications/astronciaiptv.desktop
install -Dm644 -t "${pkgdir}"/usr/share/astronciaiptv/icons usr/share/astronciaiptv/icons/*.{gif,png}
install -Dm644 -t "${pkgdir}"/usr/share/astronciaiptv/icons_dark usr/share/astronciaiptv/icons_dark/*.{gif,png}
install -Dm644 -t "${pkgdir}"/usr/share/icons/hicolor/scalable/apps usr/share/icons/hicolor/scalable/apps/astronciaiptv.svg
install -Dm644 -t "${pkgdir}"/usr/share/metainfo usr/share/metainfo/astronciaiptv.appdata.xml
install -Dm644 -t "${pkgdir}"/usr/share/astronciaiptv usr/share/astronciaiptv/license.txt
cp -a usr/lib/astronciaiptv/astroncia "${pkgdir}"/usr/lib/astronciaiptv/astroncia
cp -a usr/lib/astronciaiptv/thirdparty "${pkgdir}"/usr/lib/astronciaiptv/thirdparty
# Translations
cp -a usr/share/locale "${pkgdir}"/usr/share/locale
}
|