Merge pull request #335 from onekk/master

New packages: leafpad sakura wmctrl xscreensaver
This commit is contained in:
Juan RP 2014-04-04 12:33:40 +02:00
commit 8a5fc9fb86
5 changed files with 93 additions and 0 deletions

15
srcpkgs/leafpad/template Normal file
View file

@ -0,0 +1,15 @@
# Template file for 'leafpad'
pkgname="leafpad"
version="0.8.18.1"
revision=1
build_style=gnu-configure
short_desc="GTK+ Simple text editor"
maintainer="Carlo Dormeletti <carlo.dormeletti@email.it>"
license="GPL-2"
hostmakedepends="intltool pkg-config"
makedepends="gettext-devel gtk+-devel"
homepage="http://tarot.freeshell.org/leafpad/"
distfiles="http://download-mirror.savannah.gnu.org/releases/leafpad/leafpad-${version}.tar.gz"
checksum="959d22ae07f22803bc66ff40d373a854532a6e4732680bf8a96a3fbcb9f80a2c"

15
srcpkgs/sakura/template Normal file
View file

@ -0,0 +1,15 @@
# Template file for 'sakura'
pkgname="sakura"
version="3.1.3"
revision=1
build_style=cmake
short_desc="Simple but powerful libvte based terminal emulator"
maintainer="Carlo Dormeletti <carlo.dormeletti@email.it>"
license="GPL-2"
hostmakedepends="cmake pkg-config "
makedepends="vte3-devel glib-devel gtk+3-devel"
homepage="https://launchpad.net/sakura"
distfiles="https://launchpad.net/sakura/trunk/${version}/+download/sakura-${version}.tar.bz2"
checksum="951ee3ca8c569556ca78e338ad38b9a85c5017aeb17a1d1ce032c33d61e28ad3"

View file

@ -0,0 +1,32 @@
Description: Correct 64 Architecture implementation of 32 bit data
Author: Chris Donoghue <cdonoghu@gmail.com>
Bug-Debian: http://bugs.debian.org/362068
--- main.c
+++ main.c
@@ -1425,6 +1425,16 @@ static gchar *get_property (Display *dis
*
* long_length = Specifies the length in 32-bit multiples of the
* data to be retrieved.
+ *
+ * NOTE: see
+ * http://mail.gnome.org/archives/wm-spec-list/2003-March/msg00067.html
+ * In particular:
+ *
+ * When the X window system was ported to 64-bit architectures, a
+ * rather peculiar design decision was made. 32-bit quantities such
+ * as Window IDs, atoms, etc, were kept as longs in the client side
+ * APIs, even when long was changed to 64 bits.
+ *
*/
if (XGetWindowProperty(disp, win, xa_prop_name, 0, MAX_PROPERTY_VALUE_LEN / 4, False,
xa_prop_type, &xa_ret_type, &ret_format,
@@ -1441,6 +1451,8 @@ static gchar *get_property (Display *dis
/* null terminate the result to make string handling easier */
tmp_size = (ret_format / 8) * ret_nitems;
+ /* Correct 64 Architecture implementation of 32 bit data */
+ if(ret_format==32) tmp_size *= sizeof(long)/4;
ret = g_malloc(tmp_size + 1);
memcpy(ret, ret_prop, tmp_size);
ret[tmp_size] = '\0';

15
srcpkgs/wmctrl/template Normal file
View file

@ -0,0 +1,15 @@
# Template file for 'wmctrl'
pkgname="wmctrl"
version="1.07"
revision=1
build_style=gnu-configure
short_desc="CLI tool to interact with EWMH compliant WM"
maintainer="Carlo Dormeletti <carlo.dormeletti@email.it>"
license="GPL-2"
hostmakedepends="pkg-config"
makedepends="libX11-devel libXmu-devel glib-devel"
homepage="http://tomas.styblo.name/wmctrl/"
distfiles="http://tomas.styblo.name/wmctrl/dist/wmctrl-${version}.tar.gz"
checksum="d78a1efdb62f18674298ad039c5cbdb1edb6e8e149bb3a8e3a01a4750aa3cca9"

View file

@ -0,0 +1,16 @@
# Template file for 'xscreensaver'
pkgname="xscreensaver"
version="5.26"
revision=1
build_style=gnu-configure
short_desc="Screensaver for X complete package"
maintainer="Carlo Dormeletti <carlo.dormeletti@email.it>"
license="GPL-2"
hostmakedepends="bc perl pkg-config"
makedepends="libX11-devel gtk+-devel gdk-pixbuf-devel
MesaLib-devel libXt-devel libXpm-devel libxml2-devel libglade-devel
glu-devel libjpeg-turbo-devel libXmu-devel"
homepage="http://www.jwz.org/xscreensaver/"
distfiles="http://www.jwz.org/xscreensaver/xscreensaver-${version}.tar.gz"
checksum="2ca4dc66e11947396124d1f87dd2787e0d8dd8dd1ada8871b3d8df40fb4f1b55"