Add comskip and tvheadend

This commit is contained in:
moparisthebest
2016-11-05 21:22:44 -04:00
parent a10ef28c18
commit 5538c56e37
9 changed files with 243 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
pkgbase = tvheadend
pkgdesc = TV streaming server for Linux
pkgver = 4.0.9
pkgrel = 3
url = https://tvheadend.org/projects/tvheadend
install = tvheadend.install
arch = i686
arch = x86_64
arch = arm
arch = armv6h
arch = armv7h
arch = aarch64
license = GPL3
makedepends = git
makedepends = wget
makedepends = python2
depends = avahi
depends = linuxtv-dvb-apps
depends = ffmpeg2.8
depends = uriparser
optdepends = xmltv: For an alternative source of programme listings
optdepends = libiconv: For conversion of character encodings
provides = tvheadend
conflicts = tvheadend-git
source = https://github.com/tvheadend/tvheadend/archive/v4.0.9.tar.gz
source = tvheadend.service
source = tvheadend-4.0.9-1.patch
sha512sums = ba8c6edcef126c6a260a9251b0948747074061c8f16fb20f03b250c6698645172c9396530b7fa44bf9cf4d8305fcece08c672c812ba6c48211edfbb2691fb58e
sha512sums = 456084a08ce0e02a4a32d67a8a7937d45695cb4b08b29297ead8a7e9d2a92963335f653f56d4c9346f4b2729868408fafbcd4caebf9fc8cdaa90171514cf4a57
sha512sums = 166985b311e1e004afed53af1fdd58b0f29f3fd09af367abca270f94564f5f821027e60220f9e588a8895939eae360e99947f45b863fbbc0b541c99389d82bad
pkgname = tvheadend
+44
View File
@@ -0,0 +1,44 @@
# Maintainer: Alex Mekkering <amekkering at gmail dot com>
# Contributor: Bjoern Franke <bjo@nord-west.org>
pkgname=tvheadend
pkgver=4.0.9
pkgrel=3
pkgdesc="TV streaming server for Linux"
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
url="https://tvheadend.org/projects/tvheadend"
license=('GPL3')
depends=('avahi' 'linuxtv-dvb-apps' 'ffmpeg2.8' 'uriparser')
makedepends=('git' 'wget' 'python2')
optdepends=('xmltv: For an alternative source of programme listings'
'libiconv: For conversion of character encodings')
provides=('tvheadend')
conflicts=('tvheadend-git')
install=tvheadend.install
source=("https://github.com/tvheadend/tvheadend/archive/v$pkgver.tar.gz"
'tvheadend.service'
'tvheadend-4.0.9-1.patch'
)
sha512sums=('ba8c6edcef126c6a260a9251b0948747074061c8f16fb20f03b250c6698645172c9396530b7fa44bf9cf4d8305fcece08c672c812ba6c48211edfbb2691fb58e'
'456084a08ce0e02a4a32d67a8a7937d45695cb4b08b29297ead8a7e9d2a92963335f653f56d4c9346f4b2729868408fafbcd4caebf9fc8cdaa90171514cf4a57'
'166985b311e1e004afed53af1fdd58b0f29f3fd09af367abca270f94564f5f821027e60220f9e588a8895939eae360e99947f45b863fbbc0b541c99389d82bad')
prepare() {
cd ${srcdir}/${pkgname}-${pkgver}
patch -p1 -i ../tvheadend-4.0.9-1.patch
env PKG_CONFIG_PATH=/usr/lib/ffmpeg2.8/pkgconfig ./configure --prefix=/usr --python=python2
}
build() {
cd ${srcdir}/${pkgname}-${pkgver}
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR="$pkgdir/" install
chmod 0644 ${pkgdir}/usr/share/man/man1/tvheadend.1
install -D -m 644 "$srcdir/tvheadend.service" "$pkgdir/usr/lib/systemd/system/tvheadend.service"
}
+21
View File
@@ -0,0 +1,21 @@
diff -aur package.pristine/src/htsmsg.c package.new/src/htsmsg.c
--- package.pristine/src/htsmsg.c 2016-06-08 13:49:21.423171678 +0200
+++ package.new/src/htsmsg.c 2016-06-08 13:50:20.489342743 +0200
@@ -760,13 +760,15 @@
case HMF_MAP:
printf("MAP) = {\n");
htsmsg_print0(&f->hmf_msg, indent + 1);
- for(i = 0; i < indent; i++) printf("\t"); printf("}\n");
+ for(i = 0; i < indent; i++) printf("\t");
+ printf("}\n");
break;
case HMF_LIST:
printf("LIST) = {\n");
htsmsg_print0(&f->hmf_msg, indent + 1);
- for(i = 0; i < indent; i++) printf("\t"); printf("}\n");
+ for(i = 0; i < indent; i++) printf("\t");
+ printf("}\n");
break;
case HMF_STR:
+24
View File
@@ -0,0 +1,24 @@
HTS_USER=hts
HTS_UID=1337
HTS_GROUP=video
post_install() {
if ! getent passwd $HTS_USER &> /dev/null; then
useradd -u $HTS_UID -g $HTS_GROUP -m -s /bin/false $HTS_USER &> /dev/null
passwd -l $HTS_USER &> /dev/null
echo " ==> User '$HTS_USER' created"
fi
cat << 'EOM'
==> All configuration is maintained through the web interface:
==>
==> http://localhost:9981/
==>
==> Default login without username/password.
EOM
}
post_remove() {
userdel $HTS_USER &> /dev/null
echo " ==> User '$HTS_USER' removed"
}
+14
View File
@@ -0,0 +1,14 @@
[Unit]
Description=tvheadend
After=tmp.mount network.target
[Service]
Type=forking
PIDFile=/run/tvheadend.pid
ExecStart=/usr/bin/tvheadend -f -p /run/tvheadend.pid -C -u hts -g video
ExecStop=/usr/bin/rm /run/tvheadend.pid
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target