From de42bea0019cfba3a5681e19e35f22a338a0d7ad Mon Sep 17 00:00:00 2001
From: Cecil Hugh Watson <knoppmyth@gmail.com>
Date: Tue, 3 Feb 2009 23:33:30 -0800
Subject: Bumped version to include mythvideo.install which, creates symlinks
 for video dir in MythWeb.

---
 abs/core-testing/mythtv/stable/mythvideo/PKGBUILD     |  3 ++-
 .../mythtv/stable/mythvideo/mythvideo.install         | 19 +++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletion(-)
 create mode 100644 abs/core-testing/mythtv/stable/mythvideo/mythvideo.install

diff --git a/abs/core-testing/mythtv/stable/mythvideo/PKGBUILD b/abs/core-testing/mythtv/stable/mythvideo/PKGBUILD
index a1bab3f..3fc71c5 100644
--- a/abs/core-testing/mythtv/stable/mythvideo/PKGBUILD
+++ b/abs/core-testing/mythtv/stable/mythvideo/PKGBUILD
@@ -4,7 +4,7 @@
 
 pkgname=mythvideo
 pkgver=0.21
-pkgrel=3
+pkgrel=4
 pkgdesc="Video playback and browsing plugin for MythTV"
 arch=('i686' 'x86_64')
 url="http://www.mythtv.org"
@@ -15,6 +15,7 @@ source=("ftp://ftp.knoppmyth.net/R6/sources/mythplugins-$pkgver-fixes.tar.bz2"\
 md5sums=('00ee70be781b9af5913f046525d79ab9' '476c12ba074794ad7f4ae092bdf949d6')
 replaces=('mythdvd')
 groups=('mythtv-extras')
+install=mythvideo.install
 
 build() {
    cd $startdir/src/mythplugins
diff --git a/abs/core-testing/mythtv/stable/mythvideo/mythvideo.install b/abs/core-testing/mythtv/stable/mythvideo/mythvideo.install
new file mode 100644
index 0000000..177cc93
--- /dev/null
+++ b/abs/core-testing/mythtv/stable/mythvideo/mythvideo.install
@@ -0,0 +1,19 @@
+# arg 1:  the new package version
+post_install() {
+	ln -s /myth/video /data/srv/httpd/htdocs/mythweb/data/video
+	ln -s /myth/video/.covers /data/srv/httpd/htdocs/mythweb/data/video_covers
+}
+# arg 1:  the new package version
+# arg 2:  the old package version
+#post_upgrade() {
+#}
+
+# arg 1:  the old package version
+post_remove() {
+	rm -fr /data/srv/httpd/htdocs/mythweb/data/video
+	rm -fr /data/srv/httpd/htdocs/mythweb/data/video_covers
+#}
+
+op=$1
+shift
+$op $*
-- 
cgit v0.12

