summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: dfc8130a084d60e857fc3922159fffe64b8adceb (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
# Maintainer: Yugami
# Contributor: yukichan

pkgname=yuki-iptv-git
pkgver=r1374.09a6bee
pkgrel=1
pkgdesc="IPTV player with EPG support (Astroncia IPTV fork)"
arch=('any')
url="https://github.com/yuki-iptv/yuki-iptv"
license=('GPL3')
depends=('python' 'qt6-base' 'mpv' 'python-pyqt6' 'python-wand' 'python-gobject' 'python-unidecode' 'python-requests' 'python-chardet' 'python-setproctitle' 'python-pydbus' 'ffmpeg')
optdepends=('yt-dlp: YouTube channel support')
makedepends=('make' 'git')
provides=('yuki-iptv')
conflicts=('yuki-iptv')
source=("git+${url}.git")
b2sums=('SKIP')

pkgver() {
        cd ${pkgname/-git}
        printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
        cd ${pkgname/-git}
        sed -i "s/__DEB_VERSION__/${pkgver}/g" usr/lib/yuki-iptv/yuki-iptv.py
        make
}

package() {
        cd ${pkgname/-git}
        cp -r usr/ "$pkgdir/"
}