mirror of
https://github.com/moparisthebest/arch-ppa
synced 2024-12-23 15:08:50 -05:00
Add comskip and tvheadend
This commit is contained in:
parent
a10ef28c18
commit
5538c56e37
19
src/argtable/.SRCINFO
Normal file
19
src/argtable/.SRCINFO
Normal file
@ -0,0 +1,19 @@
|
||||
pkgbase = argtable
|
||||
pkgdesc = An ANSI C command line parser
|
||||
pkgver = 2.13
|
||||
pkgrel = 2
|
||||
url = http://argtable.sourceforge.net/
|
||||
arch = i686
|
||||
arch = x86_64
|
||||
arch = armv7h
|
||||
license = LGPL
|
||||
source = http://downloads.sourceforge.net/argtable/argtable2-13.tar.gz
|
||||
sha1sums = bce828c64c35e16f4c3f8e1f355e4a2a97fe3289
|
||||
|
||||
pkgname = argtable
|
||||
options = !libtool
|
||||
|
||||
pkgname = argtable-docs
|
||||
pkgdesc = An ANSI C command line parser - documentation and examples
|
||||
arch = any
|
||||
|
45
src/argtable/PKGBUILD
Normal file
45
src/argtable/PKGBUILD
Normal file
@ -0,0 +1,45 @@
|
||||
# Maintainer: Marcin (CTRL) Wieczorek <marcin@marcin.co>
|
||||
# Contributor: TDY <tdy@archlinux.info>
|
||||
# Contributor: Mark Taylor <skymt0 at gmail dot com>
|
||||
|
||||
pkgbase=argtable
|
||||
pkgname=('argtable' 'argtable-docs')
|
||||
pkgver=2.13
|
||||
pkgrel=2
|
||||
pkgdesc="An ANSI C command line parser"
|
||||
arch=('i686' 'x86_64' 'armv7h')
|
||||
url="http://argtable.sourceforge.net/"
|
||||
license=('LGPL')
|
||||
source=(http://downloads.sourceforge.net/argtable/$pkgname${pkgver/./-}.tar.gz)
|
||||
sha1sums=('bce828c64c35e16f4c3f8e1f355e4a2a97fe3289')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/${pkgname%-*}${pkgver/./-}"
|
||||
./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
check_argtable() {
|
||||
cd "$srcdir/${pkgname%-*}${pkgver/./-}"
|
||||
make -k check
|
||||
}
|
||||
|
||||
package_argtable() {
|
||||
options=('!libtool')
|
||||
|
||||
cd "$srcdir/${pkgname%-*}${pkgver/./-}"
|
||||
sed -i '/^install-data-am:/s/install-dist_exampleDATA //' Makefile
|
||||
make SUBDIRS="src tests" DESTDIR="$pkgdir/" install
|
||||
install -D -m644 "COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
|
||||
}
|
||||
|
||||
package_argtable-docs() {
|
||||
pkgdesc+=" - documentation and examples"
|
||||
arch=('any')
|
||||
|
||||
cd "$srcdir/${pkgname%-*}${pkgver/./-}"
|
||||
make -C doc DESTDIR="$pkgdir/" install
|
||||
make DESTDIR="$pkgdir/" install-dist_exampleDATA
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
17
src/comskip/.SRCINFO
Normal file
17
src/comskip/.SRCINFO
Normal file
@ -0,0 +1,17 @@
|
||||
# Generated by mksrcinfo v8
|
||||
# Sun Sep 18 15:53:06 UTC 2016
|
||||
pkgbase = comskip
|
||||
pkgdesc = Comskip is a free MPEG commercial break detector.
|
||||
pkgver = 0.93
|
||||
pkgrel = 4
|
||||
url = http://github.com/erikkaashoek/Comskip
|
||||
arch = x86_64
|
||||
arch = i686
|
||||
license = GPL3
|
||||
depends = ffmpeg
|
||||
depends = argtable
|
||||
source = comskip::git+https://github.com/erikkaashoek/Comskip.git#branch=master
|
||||
sha256sums = SKIP
|
||||
|
||||
pkgname = comskip
|
||||
|
26
src/comskip/PKGBUILD
Normal file
26
src/comskip/PKGBUILD
Normal file
@ -0,0 +1,26 @@
|
||||
# Maintainer: Nick Burrett <nick@sqrt.co.uk>
|
||||
pkgname=comskip
|
||||
pkgver=0.93
|
||||
pkgrel=4
|
||||
pkgdesc='Comskip is a free MPEG commercial break detector'.
|
||||
_gitname='comskip'
|
||||
url='http://github.com/erikkaashoek/Comskip'
|
||||
arch=('x86_64' 'i686')
|
||||
license=('GPL3')
|
||||
depends=('ffmpeg2.8' 'argtable')
|
||||
source=("${_gitname}::git+https://github.com/erikkaashoek/Comskip.git#branch=master")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${_gitname}"
|
||||
./autogen.sh
|
||||
PKG_CONFIG_PATH=/usr/lib/ffmpeg2.8/pkgconfig ./configure --prefix=/usr
|
||||
make
|
||||
}
|
||||
|
||||
package() {
|
||||
mkdir -p "$pkgdir/usr/bin"
|
||||
install -m755 "${srcdir}/${_gitname}/comskip" "$pkgdir/usr/bin/comskip"
|
||||
}
|
||||
|
||||
# vim:set ts=2 sw=2 et:
|
33
src/tvheadend/.SRCINFO
Normal file
33
src/tvheadend/.SRCINFO
Normal 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
src/tvheadend/PKGBUILD
Normal file
44
src/tvheadend/PKGBUILD
Normal 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
src/tvheadend/tvheadend-4.0.9-1.patch
Normal file
21
src/tvheadend/tvheadend-4.0.9-1.patch
Normal 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
src/tvheadend/tvheadend.install
Normal file
24
src/tvheadend/tvheadend.install
Normal 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
src/tvheadend/tvheadend.service
Normal file
14
src/tvheadend/tvheadend.service
Normal 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
|
Loading…
Reference in New Issue
Block a user