From d335c46e47273ff26f1a955b608c32f35adec2bd Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 12 Jan 2013 17:54:14 +0100 Subject: [PATCH] New package: WindowMaker-0.95.4. --- srcpkgs/WindowMaker-devel | 1 + .../WindowMaker/WindowMaker-devel.template | 10 ++++++ srcpkgs/WindowMaker/files/wmaker.desktop | 5 +++ srcpkgs/WindowMaker/patches/giflib-5.0.patch | 34 +++++++++++++++++++ srcpkgs/WindowMaker/template | 32 +++++++++++++++++ 5 files changed, 82 insertions(+) create mode 120000 srcpkgs/WindowMaker-devel create mode 100644 srcpkgs/WindowMaker/WindowMaker-devel.template create mode 100644 srcpkgs/WindowMaker/files/wmaker.desktop create mode 100644 srcpkgs/WindowMaker/patches/giflib-5.0.patch create mode 100644 srcpkgs/WindowMaker/template diff --git a/srcpkgs/WindowMaker-devel b/srcpkgs/WindowMaker-devel new file mode 120000 index 00000000000..b63e7ba4919 --- /dev/null +++ b/srcpkgs/WindowMaker-devel @@ -0,0 +1 @@ +WindowMaker \ No newline at end of file diff --git a/srcpkgs/WindowMaker/WindowMaker-devel.template b/srcpkgs/WindowMaker/WindowMaker-devel.template new file mode 100644 index 00000000000..428871dec83 --- /dev/null +++ b/srcpkgs/WindowMaker/WindowMaker-devel.template @@ -0,0 +1,10 @@ +# Template file for 'WindowMaker-devel'. +# +noarch=yes +depends="${sourcepkg}>=${version}" +short_desc="${short_desc} -- development files" + +do_install() { + vmove usr/include usr + vmove usr/lib/pkgconfig usr/lib +} diff --git a/srcpkgs/WindowMaker/files/wmaker.desktop b/srcpkgs/WindowMaker/files/wmaker.desktop new file mode 100644 index 00000000000..f819c757731 --- /dev/null +++ b/srcpkgs/WindowMaker/files/wmaker.desktop @@ -0,0 +1,5 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=windowmaker +Exec=/usr/bin/wmaker +Type=Application diff --git a/srcpkgs/WindowMaker/patches/giflib-5.0.patch b/srcpkgs/WindowMaker/patches/giflib-5.0.patch new file mode 100644 index 00000000000..9d6cc91f971 --- /dev/null +++ b/srcpkgs/WindowMaker/patches/giflib-5.0.patch @@ -0,0 +1,34 @@ +--- wrlib/gif.c.orig 2013-01-12 17:36:51.015744230 +0100 ++++ wrlib/gif.c 2013-01-12 17:47:33.992447587 +0100 +@@ -43,7 +43,7 @@ RImage *RLoadGIF(char *file, int index) + unsigned char *cptr; + GifFileType *gif = NULL; + GifPixelType *buffer = NULL; +- int i, j, k; ++ int i, j, k, err = 0; + int width, height; + GifRecordType recType; + ColorMapObject *colormap; +@@ -57,10 +57,10 @@ RImage *RLoadGIF(char *file, int index) + /* default error message */ + RErrorCode = RERR_BADINDEX; + +- gif = DGifOpenFileName(file); ++ gif = DGifOpenFileName(file, &err); + +- if (!gif) { +- switch (GifLastError()) { ++ if (err) { ++ switch (err) { + case D_GIF_ERR_OPEN_FAILED: + RErrorCode = RERR_OPEN; + break; +@@ -197,7 +197,7 @@ RImage *RLoadGIF(char *file, int index) + /* yuck! */ + goto did_not_get_any_errors; + giferr: +- switch (GifLastError()) { ++ switch (gif->Error) { + case D_GIF_ERR_OPEN_FAILED: + RErrorCode = RERR_OPEN; + break; diff --git a/srcpkgs/WindowMaker/template b/srcpkgs/WindowMaker/template new file mode 100644 index 00000000000..64fabf7a426 --- /dev/null +++ b/srcpkgs/WindowMaker/template @@ -0,0 +1,32 @@ +# Template file for 'WindowMaker' +pkgname=WindowMaker +version=0.95.4 +revision=1 +build_style=gnu-configure +configure_args="--enable-xinerama --with-nlsdir=/usr/share/locale + --with-gnustepdir=/usr/lib/GNUstep --enable-usermenu --enable-modelock + --enable-xrandr --disable-static" +makedepends="pkg-config libXinerama-devel libXrandr-devel + libXmu-devel libpng-devel libXpm-devel libXft-devel tiff-devel + giflib-devel fontconfig-devel" +short_desc="An X11 window manager with a NEXTSTEP look and feel" +maintainer="Juan RP " +license="GPL-3" +homepage="http://www.windowmaker.org/" +distfiles="http://windowmaker.org/pub/source/release/${pkgname}-${version}.tar.gz" +checksum=2bea97f00570f05ff115d147457c16abefe496a4fc882a027152ce592d768e45 + +subpackages="${pkgname}-devel" + +conf_files=" +/etc/WindowMaker +/etc/WindowMaker/WindowMaker +/etc/WindowMaker/WMRootMenu +/etc/WindowMaker/WMWindowAttributes +/etc/WindowMaker/WMState +/etc/WindowMaker/WMGLOBA" + +post_install() { + vinstall COPYING.WTFPL 644 usr/share/licenses/${pkgname} + vinstall ${FILESDIR}/wmaker.desktop 644 usr/share/xsessions +}