From 68f2e7fce1e049c990be3312f8d4261f352efb5a Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Fri, 24 Aug 2012 23:12:37 -0500
Subject: wmaker:  added workaround for minor bug  symlink 
 /usr/share/WindowMaker is symlinked to /usr/local/share/

---
 abs/core/windowmaker/PKGBUILD       |  6 +++---
 abs/core/windowmaker/__changelog    |  1 +
 abs/core/windowmaker/wmaker.install | 37 +++++++++++++++++++++++++++++++++++++
 3 files changed, 41 insertions(+), 3 deletions(-)
 create mode 100644 abs/core/windowmaker/__changelog
 create mode 100644 abs/core/windowmaker/wmaker.install

diff --git a/abs/core/windowmaker/PKGBUILD b/abs/core/windowmaker/PKGBUILD
index 3b20bf5..e588b62 100644
--- a/abs/core/windowmaker/PKGBUILD
+++ b/abs/core/windowmaker/PKGBUILD
@@ -11,9 +11,7 @@ license=('GPL' 'custom')
 depends=('libxinerama' 'libxrandr' 'libxmu' 'libpng' 'libxpm' 'libxft' 'libtiff' 'giflib')
 options=('!libtool')
 source=(http://windowmaker.org/pub/source/release/WindowMaker-$pkgver.tar.gz wmaker.desktop)  
-md5sums=('305af9d862e853a5d7977e801cb66ca3'
-         '2fba97bebfd691836b92b8f0db79ff13')
-
+install=wmaker.install
 build() {
   cd $srcdir/WindowMaker-$pkgver
   [ -z "$LINGUAS" ] && export LINGUAS="`ls po/*.po | sed 's:po/\(.*\)\.po$:\1:'`"
@@ -31,3 +29,5 @@ package() {
   install -D -m644 $srcdir/wmaker.desktop $pkgdir/usr/share/xsessions/wmaker.desktop
 }
 
+md5sums=('305af9d862e853a5d7977e801cb66ca3'
+         '2fba97bebfd691836b92b8f0db79ff13')
diff --git a/abs/core/windowmaker/__changelog b/abs/core/windowmaker/__changelog
new file mode 100644
index 0000000..7f6a831
--- /dev/null
+++ b/abs/core/windowmaker/__changelog
@@ -0,0 +1 @@
+wmaker.install
diff --git a/abs/core/windowmaker/wmaker.install b/abs/core/windowmaker/wmaker.install
new file mode 100644
index 0000000..c646e13
--- /dev/null
+++ b/abs/core/windowmaker/wmaker.install
@@ -0,0 +1,37 @@
+# This is a default template for a post-install scriptlet.
+# Uncomment only required functions and remove any functions
+# you don't need (and this header).
+
+## arg 1:  the new package version
+#pre_install() {
+  # do something here
+#}
+
+## arg 1:  the new package version
+post_install() {
+  ln -s /usr/share/WindowMaker /usr/local/share/WindowMaker 2>/dev/null
+}
+
+## arg 1:  the new package version
+## arg 2:  the old package version
+pre_upgrade() {
+  /bin/true 
+}
+
+## arg 1:  the new package version
+## arg 2:  the old package version
+post_upgrade() {
+  post_install
+}
+
+## arg 1:  the old package version
+#pre_remove() {
+  # do something here
+#}
+
+## arg 1:  the old package version
+#post_remove() {
+  # do something here
+#}
+
+# vim:set ts=2 sw=2 et:
-- 
cgit v0.12

