From 13c949f5c5dedc8909aef33f49703622f11ce0cd Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Sun, 13 May 2012 15:41:51 -0500
Subject: windowmaker: update to .95.2  replacing crm-git

---
 abs/core/windowmaker/PKGBUILD                      |  33 +++++++++++++++++++++
 abs/core/windowmaker/libpng-1.4.patch              |  12 ++++++++
 .../windowmaker/windowmaker-gcc4.patch.tar.bz2     | Bin 0 -> 39677 bytes
 abs/core/windowmaker/wmaker.desktop                |   5 ++++
 4 files changed, 50 insertions(+)
 create mode 100644 abs/core/windowmaker/PKGBUILD
 create mode 100644 abs/core/windowmaker/libpng-1.4.patch
 create mode 100644 abs/core/windowmaker/windowmaker-gcc4.patch.tar.bz2
 create mode 100644 abs/core/windowmaker/wmaker.desktop

diff --git a/abs/core/windowmaker/PKGBUILD b/abs/core/windowmaker/PKGBUILD
new file mode 100644
index 0000000..e9a9853
--- /dev/null
+++ b/abs/core/windowmaker/PKGBUILD
@@ -0,0 +1,33 @@
+# $Id: PKGBUILD 150208 2012-02-14 20:50:29Z daniel $
+# Maintainer: Daniel Isenmann <daniel@archlinux.org>
+# Contributor: Judd Vinet <jvinet@zeroflux.org>
+pkgname=windowmaker
+pkgver=0.95.2
+pkgrel=1
+pkgdesc="An X11 window manager with a NEXTSTEP look and feel"
+arch=(i686 x86_64)
+url="http://www.windowmaker.org/"
+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=('ae62bad9c4dee504066e0f172b565ff0'
+         '2fba97bebfd691836b92b8f0db79ff13')
+
+build() {
+  cd $srcdir/WindowMaker-$pkgver
+  [ -z "$LINGUAS" ] && export LINGUAS="`ls po/*.po | sed 's:po/\(.*\)\.po$:\1:'`"
+  ./configure --prefix=/usr --sysconfdir=/etc --enable-xinerama \
+    --with-nlsdir=/usr/share/locale --with-gnustepdir=/usr/lib/GNUstep \
+    --enable-usermenu --enable-modelock --enable-xrandr
+  make
+}
+
+package() {
+  cd $srcdir/WindowMaker-$pkgver
+  
+  make DESTDIR=$pkgdir install
+  install -D -m644 COPYING.WTFPL $pkgdir/usr/share/licenses/$pkgname/COPYING.WTFPL
+  install -D -m644 $srcdir/wmaker.desktop $pkgdir/usr/share/xsessions/wmaker.desktop
+}
+
diff --git a/abs/core/windowmaker/libpng-1.4.patch b/abs/core/windowmaker/libpng-1.4.patch
new file mode 100644
index 0000000..419e8fa
--- /dev/null
+++ b/abs/core/windowmaker/libpng-1.4.patch
@@ -0,0 +1,12 @@
+diff -Naur WindowMaker-0.92.0-orig/wrlib/load.c WindowMaker-0.92.0/wrlib/load.c
+--- WindowMaker-0.92.0-orig/wrlib/load.c	2010-01-21 16:10:39.000000000 -0500
++++ WindowMaker-0.92.0/wrlib/load.c	2010-01-21 16:13:15.000000000 -0500
+@@ -348,7 +348,7 @@
+ 
+ #ifdef USE_PNG
+     /* check for PNG */
+-    if (png_check_sig(buffer, 8))
++    if (!png_sig_cmp(buffer, 0, 8))
+         return IM_PNG;
+ #endif
+ 
diff --git a/abs/core/windowmaker/windowmaker-gcc4.patch.tar.bz2 b/abs/core/windowmaker/windowmaker-gcc4.patch.tar.bz2
new file mode 100644
index 0000000..fae12a9
Binary files /dev/null and b/abs/core/windowmaker/windowmaker-gcc4.patch.tar.bz2 differ
diff --git a/abs/core/windowmaker/wmaker.desktop b/abs/core/windowmaker/wmaker.desktop
new file mode 100644
index 0000000..f819c75
--- /dev/null
+++ b/abs/core/windowmaker/wmaker.desktop
@@ -0,0 +1,5 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=windowmaker
+Exec=/usr/bin/wmaker
+Type=Application
-- 
cgit v0.12

