summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Reimer2015-06-08 11:10:03 +0200
committerChristopher Reimer2015-06-08 11:10:03 +0200
commit896b59d2d766692cb2c19d548c83eddf403b25df (patch)
tree22305438f53512046d54268fe4b296857fc6220a
downloadaur-896b59d2d766692cb2c19d548c83eddf403b25df.tar.gz
Sync from VDR4Arch (https://github.com/VDR4Arch/vdr4arch/commit/3bf8a4492e3b973a559fd2c53855b231e25c7e74)
-rw-r--r--.SRCINFO25
-rw-r--r--50-markad.conf6
-rw-r--r--PKGBUILD50
3 files changed, 81 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..17e66d9602f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,25 @@
+pkgbase = vdr-markad
+ pkgdesc = automatic advertisement detection
+ pkgver = 0.1.4_37_gc55f43f
+ pkgrel = 8
+ epoch = 1
+ url = http://projects.vdr-developer.org/projects/plg-markad
+ arch = x86_64
+ arch = i686
+ arch = arm
+ arch = armv6h
+ arch = armv7h
+ license = GPL2
+ makedepends = git
+ depends = ffmpeg
+ depends = vdr-api=2.2.0
+ backup = etc/vdr/conf.avail/50-markad.conf
+ source = git://projects.vdr-developer.org/vdr-plugin-markad.git#commit=c55f43f413dff8740f99d684e8879835d4409920
+ source = markad-newmakefile-vdr-1.7.36.tgz::http://www.vdr-portal.de/index.php?page=Attachment&attachmentID=32670
+ source = 50-markad.conf
+ md5sums = SKIP
+ md5sums = 5dd5c090a59066adca01ac487a9faeae
+ md5sums = c0d6383c9c9b8ee6c34af19179676bf3
+
+pkgname = vdr-markad
+
diff --git a/50-markad.conf b/50-markad.conf
new file mode 100644
index 00000000000..c8adb2c9323
--- /dev/null
+++ b/50-markad.conf
@@ -0,0 +1,6 @@
+[markad]
+#--bindir=DIR
+# use DIR as location for markad executable (default: /usr/bin)
+
+#--logocachedir=DIR
+# use DIR as location for markad logos (default: /var/lib/markad) \ No newline at end of file
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b315cfb745b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,50 @@
+# This PKGBUILD is part of the VDR4Arch project [https://github.com/vdr4arch]
+
+# Maintainer: Alexander Grothe <seahawk1986[at]hotmail[dot]com>
+pkgname=vdr-markad
+pkgver=0.1.4_37_gc55f43f
+epoch=1
+_gitver=c55f43f413dff8740f99d684e8879835d4409920
+_vdrapi=2.2.0
+pkgrel=8
+pkgdesc="automatic advertisement detection"
+url="http://projects.vdr-developer.org/projects/plg-markad"
+arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h')
+license=('GPL2')
+depends=('ffmpeg' "vdr-api=${_vdrapi}")
+makedepends=('git')
+_plugname=$(echo $pkgname | sed 's/vdr-//g')
+source=("git://projects.vdr-developer.org/vdr-plugin-markad.git#commit=$_gitver"
+ "markad-newmakefile-vdr-1.7.36.tgz::http://www.vdr-portal.de/index.php?page=Attachment&attachmentID=32670"
+ "50-$_plugname.conf")
+backup=("etc/vdr/conf.avail/50-$_plugname.conf")
+md5sums=('SKIP'
+ '5dd5c090a59066adca01ac487a9faeae'
+ 'c0d6383c9c9b8ee6c34af19179676bf3')
+
+pkgver() {
+ cd "${srcdir}/vdr-plugin-${_plugname}"
+ git describe --tags | sed 's/-/_/g;s/v//'
+}
+
+prepare() {
+ cd "${srcdir}/vdr-plugin-${_plugname}"
+ cp "$srcdir/markad/plugin/Makefile" plugin/Makefile
+}
+
+build() {
+ cd "${srcdir}/vdr-plugin-${_plugname}"
+ make
+}
+
+package() {
+ cd "${srcdir}/vdr-plugin-${_plugname}"
+ make DESTDIR="$pkgdir" install
+
+ #Move the logofiles to the right place and add a symlink to workaround patching.
+ mkdir -p "$pkgdir/usr/share"
+ mv "$pkgdir/var/lib/markad" "$pkgdir/usr/share/markad"
+ ln -s /usr/share/markad "$pkgdir/var/lib/markad"
+
+ install -Dm644 "$srcdir/50-$_plugname.conf" "$pkgdir/etc/vdr/conf.avail/50-$_plugname.conf"
+}