From 53b2ba2e54ac7d591566338d8cf3c17d60023527 Mon Sep 17 00:00:00 2001
From: Cecil Hugh Watson <knoppmyth@gmail.com>
Date: Fri, 23 Jan 2009 23:06:23 -0800
Subject: Import mythexport.sql after installation.

---
 abs/extra-testing/mythexport/PKGBUILD           | 2 +-
 abs/extra-testing/mythexport/mythexport.install | 8 ++++++++
 2 files changed, 9 insertions(+), 1 deletion(-)
 create mode 100644 abs/extra-testing/mythexport/mythexport.install

diff --git a/abs/extra-testing/mythexport/PKGBUILD b/abs/extra-testing/mythexport/PKGBUILD
index 0d40895..6139922 100644
--- a/abs/extra-testing/mythexport/PKGBUILD
+++ b/abs/extra-testing/mythexport/PKGBUILD
@@ -3,7 +3,7 @@
 
 pkgname=mythexport
 pkgver=1.0.6
-pkgrel=4
+pkgrel=5
 pkgdesc="Script to export recordings for portable devices."
 arch=('i686' 'x86_64')
 license=('GPL2')
diff --git a/abs/extra-testing/mythexport/mythexport.install b/abs/extra-testing/mythexport/mythexport.install
new file mode 100644
index 0000000..4408a16
--- /dev/null
+++ b/abs/extra-testing/mythexport/mythexport.install
@@ -0,0 +1,8 @@
+# arg 1:  the new package version
+post_install() {a
+	mysql -u root mythconverg < /usr/share/mythtv/mythexport.sql
+}
+
+op=$1
+shift
+$op $*
-- 
cgit v0.12

