blob: 2f05cb8d9d9a6911aefe1e249b4e9daa52b97db6 (
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
|
# Maintainer: Nikos Toutountzoglou <nikos.toutou@protonmail.com>
pkgname=iptvorg-epg
pkgver=2023.12.1
pkgrel=2
pkgdesc='Utilities for downloading the EPG (Electronic Program Guide) for thousands of TV channels from hundreds of sources'
arch=(any)
url=https://github.com/iptv-org/epg
license=(Unlicense)
depends=(
python
libxml2
nodejs
npm
)
makedepends=(
nodejs
npm
)
source=(
https://github.com/iptv-org/epg/archive/refs/tags/${pkgver}.tar.gz
iptvorg-epg.sh
my.channels.xml
)
sha256sums=('21a6654911daf24d7ed6abf8e2fcb1c7331b3cce64053a96faead3fbe98e9fb3'
'87a2ed9594d7d53230178170b5421e15631b0827b672fa1b5da21e6692191065'
'26e87976d170c78e458ac44e65d305374aef67d2ab44a17bce151e86a2b783e5')
build() {
npm i --cache npm-cache --prefix epg-$pkgver
bsdtar -a -cf epg-$pkgver.tgz epg-$pkgver
}
package() {
# Install npm application
install -d "$pkgdir"/usr/share/$pkgname "$pkgdir"/usr/bin
install -Dm644 epg-$pkgver.tgz "$pkgdir"/usr/share/$pkgname
# Install executable and license
install -Dm755 iptvorg-epg.sh "$pkgdir"/usr/bin/iptvorg-epg
install -Dm644 epg-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
# Install example custom-channels-xml file
install -Dm644 my.channels.xml "$pkgdir"/usr/share/$pkgname/my.channels.xml
}
|