summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7cde2f78c104618769c1c0da6cb5c436048c3d18 (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
# Maintainer: Alex Mekkering <amekkering at gmail dot com>

pkgname=horepg
pkgver=r66.f85e46c
pkgrel=1
pkgdesc="Parses EPG data from the service at horizon.tv for usage in TVHeadend."
arch=('any')
url="https://github.com/beralt/horepg"
license=('MIT')
depends=('python-requests' 'tvheadend')
makedepends=('python-setuptools')

###################################
# Use a specific commit for stability reasons
source=('git+https://github.com/beralt/horepg.git#commit=f85e46c')
###################################
# Enable the following line (& disable the previous one) to build using the most recent commit
#source=('git+https://github.com/beralt/horepg.git')

install=horepg.install

prepare() {
    cd ${srcdir}/${pkgname}
    patch -p1 -i ../../horepg-disable-radio.patch
}

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

package() {
    cd "${srcdir}/${pkgname}"
    python setup.py install --root="${pkgdir}/"

    install -D -m 644 "dist/systemd/horepgd.service" "$pkgdir/usr/lib/systemd/system/horepgd.service"
    install -D -m 644 "dist/systemd/horepgd.timer" "$pkgdir/usr/lib/systemd/system/horepgd.timer"
}

md5sums=('SKIP')