summaryrefslogtreecommitdiff
path: root/community
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-08-12 23:14:35 +0000
committerroot <root@rshg054.dnsready.net>2011-08-12 23:14:35 +0000
commit3b2bf66355e8254bc2f033dab2dfea9e2978fa4d (patch)
tree71995991b30b0bfc7deb0c92f1da969bbfd91ec7 /community
parenteddbc98aa28d38b35833cfb1a4a3cf632c9f2b47 (diff)
Fri Aug 12 23:14:35 UTC 2011
Diffstat (limited to 'community')
-rw-r--r--community/acpitool/PKGBUILD13
-rw-r--r--community/acpitool/linux-3.0.patch18
-rw-r--r--community/gambas3/PKGBUILD9
-rw-r--r--community/parcellite/PKGBUILD11
-rw-r--r--community/parcellite/history_menu_crash_patch39
-rw-r--r--community/qps/PKGBUILD11
-rw-r--r--community/qps/version-patch.diff14
-rw-r--r--community/tomoyo-tools/PKGBUILD21
-rw-r--r--community/tomoyo-tools/build-fix.patch11
9 files changed, 120 insertions, 27 deletions
diff --git a/community/acpitool/PKGBUILD b/community/acpitool/PKGBUILD
index 51050e0e6..7fc0ac9d3 100644
--- a/community/acpitool/PKGBUILD
+++ b/community/acpitool/PKGBUILD
@@ -1,28 +1,29 @@
-# $Id: PKGBUILD 24573 2010-08-26 12:50:31Z lcarlier $
+# $Id: PKGBUILD 54004 2011-08-11 17:55:53Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Gerhard Brauer <gerhard.brauer@web.de>
# Contributor: Milosz Piglas <archeofuture@gmail.com>
pkgname=acpitool
pkgver=0.5.1
-pkgrel=2
+pkgrel=3
pkgdesc="ACPI client - replacement for apm tool"
url="http://sourceforge.net/projects/acpitool/"
arch=('i686' 'x86_64')
license=('GPL')
-source=(http://downloads.sourceforge.net/sourceforge/acpitool/acpitool-$pkgver.tar.bz2)
depends=('gcc-libs')
-md5sums=('9e4ec55201be0be71ffbc56d38b42b57')
+source=(http://downloads.sourceforge.net/sourceforge/acpitool/acpitool-$pkgver.tar.bz2
+ linux-3.0.patch)
+md5sums=('9e4ec55201be0be71ffbc56d38b42b57'
+ 'eb149edb32be6cdf20a7d16beb3e9f70')
build() {
cd "$srcdir/$pkgname-$pkgver"
-
+ patch -p1 <$srcdir/linux-3.0.patch
./configure --prefix=/usr
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
-
make prefix="$pkgdir/usr" install
}
diff --git a/community/acpitool/linux-3.0.patch b/community/acpitool/linux-3.0.patch
new file mode 100644
index 000000000..ba454a0c2
--- /dev/null
+++ b/community/acpitool/linux-3.0.patch
@@ -0,0 +1,18 @@
+diff -wbBur acpitool-0.5.1/src/acpitool.cpp acpitool-0.5.1.my/src/acpitool.cpp
+--- acpitool-0.5.1/src/acpitool.cpp 2009-08-13 23:37:48.000000000 +0400
++++ acpitool-0.5.1.my/src/acpitool.cpp 2011-08-11 21:53:17.000000000 +0400
+@@ -205,8 +205,12 @@
+ Kernel_24 = 1;
+ Kernel_26 = 0;
+ }
+-
+- if(strncmp(str,"2.6",3)==0)
++ else if(strncmp(str,"2.6",3)==0)
++ {
++ Kernel_24 = 0;
++ Kernel_26 = 1;
++ }
++ else
+ {
+ Kernel_24 = 0;
+ Kernel_26 = 1;
diff --git a/community/gambas3/PKGBUILD b/community/gambas3/PKGBUILD
index cccf98d96..728a5cab9 100644
--- a/community/gambas3/PKGBUILD
+++ b/community/gambas3/PKGBUILD
@@ -1,3 +1,4 @@
+# $Id: PKGBUILD 53990 2011-08-11 07:04:13Z lcarlier $
# Maintainer: Laurent Carlier <lordheavym@gmail.com>
pkgbase=gambas3
@@ -11,8 +12,8 @@ pkgname=('gambas3-runtime' 'gambas3-devel' 'gambas3-ide' 'gambas3-script' 'gamba
'gambas3-gb-pdf' 'gambas3-gb-qt4' 'gambas3-gb-qt4-ext' 'gambas3-gb-qt4-opengl' 'gambas3-gb-qt4-webkit'
'gambas3-gb-report' 'gambas3-gb-sdl' 'gambas3-gb-sdl-sound' 'gambas3-gb-settings' 'gambas3-gb-signal'
'gambas3-gb-v4l' 'gambas3-gb-vb' 'gambas3-gb-xml' 'gambas3-gb-xml-rpc' 'gambas3-gb-xml-xslt' 'gambas3-gb-web')
-pkgver=2.99.1
-pkgrel=4
+pkgver=2.99.2
+pkgrel=1
pkgdesc="A free development environment based on a Basic interpreter."
arch=('i686' 'x86_64')
url="http://gambas.sourceforge.net/"
@@ -21,12 +22,12 @@ groups=('gambas3')
makedepends=('intltool' 'mysql' 'postgresql' 'libffi' 'bzip2' 'glib2' 'v4l-utils'
'zlib' 'mesa' 'libgl' 'glew' 'xdg-utils' 'qt' 'gtk2' 'imlib2' 'gdk-pixbuf2'
'postgresql-libs' 'libmysqlclient' 'unixodbc' 'sqlite2' 'sqlite3' 'librsvg'
- 'curl' 'poppler' 'sdl_mixer' 'sdl_ttf' 'libxtst' 'pcre'
+ 'curl' 'poppler-glib' 'sdl_mixer' 'sdl_ttf' 'libxtst' 'pcre'
'libxcursor' 'libsm' 'dbus-core' 'libxml2' 'libxslt' 'libgnome-keyring')
options=('!emptydirs' '!makeflags')
source=("http://downloads.sourceforge.net/gambas/${pkgbase}-${pkgver}.tar.bz2"
'gambas3-script.install' 'gambas3-runtime.install')
-md5sums=('ab4c182b9d7dfec06b3a42bb002a779a'
+md5sums=('247a13e28972985766855a6bc4d6d368'
'b284be39d147ec799f1116a6abc068b4'
'a8ec8e5a6aba7a7e453ce7a35c1800a9')
diff --git a/community/parcellite/PKGBUILD b/community/parcellite/PKGBUILD
index 2685f08d3..71b4f568b 100644
--- a/community/parcellite/PKGBUILD
+++ b/community/parcellite/PKGBUILD
@@ -1,21 +1,24 @@
-# $Id: PKGBUILD 53903 2011-08-09 19:26:51Z spupykin $
+# $Id: PKGBUILD 54009 2011-08-11 18:03:17Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Alexander Fehr <pizzapunk gmail com>
pkgname=parcellite
pkgver=1.0.2rc3
-pkgrel=1
+pkgrel=2
pkgdesc="Lightweight GTK+ clipboard manager"
arch=('i686' 'x86_64')
url="http://parcellite.sourceforge.net/"
license=('GPL3')
depends=('gtk2')
makedepends=('intltool')
-source=(http://downloads.sourceforge.net/parcellite/parcellite-$pkgver.tar.gz)
-md5sums=('3fe1196cc2bb3f34d57d0e34e10449b3')
+source=(http://downloads.sourceforge.net/parcellite/parcellite-$pkgver.tar.gz
+ history_menu_crash_patch)
+md5sums=('3fe1196cc2bb3f34d57d0e34e10449b3'
+ '8fd6e07fa907865ca4db7b3e13441ce6')
build() {
cd "$srcdir/parcellite-$pkgver"
+ (cd src && patch -p0 <$srcdir/history_menu_crash_patch)
./configure --prefix=/usr --sysconfdir=/etc
make
make DESTDIR="$pkgdir" install
diff --git a/community/parcellite/history_menu_crash_patch b/community/parcellite/history_menu_crash_patch
new file mode 100644
index 000000000..961106839
--- /dev/null
+++ b/community/parcellite/history_menu_crash_patch
@@ -0,0 +1,39 @@
+Index: main.c
+===================================================================
+--- main.c (revision 232)
++++ main.c (working copy)
+@@ -1199,24 +1199,28 @@
+ {
+ GString* string = g_string_new((gchar*)element->data);
+ /* Ellipsize text */
+- if (string->len > prefs.item_length)
++ glong len = g_utf8_strlen(string->str, string->len);
++ if (len > prefs.item_length)
+ {
+ switch (prefs.ellipsize)
+ {
+ case PANGO_ELLIPSIZE_START:
+- string = g_string_erase(string, 0, string->len-(prefs.item_length));
++ string = g_string_erase(string, 0, g_utf8_offset_to_pointer(string->str, len - prefs.item_length) - string->str);
+ string = g_string_prepend(string, "...");
+ break;
+ case PANGO_ELLIPSIZE_MIDDLE:
+- string = g_string_erase(string, (prefs.item_length/2), string->len-(prefs.item_length));
+- string = g_string_insert(string, (string->len/2), "...");
++ ; /* to avoid wierd gcc error */
++ gchar* p1 = g_utf8_offset_to_pointer(string->str, prefs.item_length / 2);
++ gchar* p2 = g_utf8_offset_to_pointer(string->str, len - prefs.item_length / 2);
++ string = g_string_erase(string, p1 - string->str, p2 - p1);
++ string = g_string_insert(string, p1 - string->str, "...");
+ break;
+ case PANGO_ELLIPSIZE_END:
+- string = g_string_truncate(string, prefs.item_length);
++ string = g_string_truncate(string, g_utf8_offset_to_pointer(string->str, prefs.item_length) - string->str);
+ string = g_string_append(string, "...");
+ break;
+ }
+- }
++ }
+ /* Remove control characters */
+ gsize i = 0;
+ while (i < string->len)
diff --git a/community/qps/PKGBUILD b/community/qps/PKGBUILD
index c6a528fe6..4e3e69e34 100644
--- a/community/qps/PKGBUILD
+++ b/community/qps/PKGBUILD
@@ -1,21 +1,24 @@
-# $Id: PKGBUILD 52003 2011-07-19 16:41:14Z spupykin $
+# $Id: PKGBUILD 54014 2011-08-11 18:04:13Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: David Rosenstrauch <darose@darose.net>
pkgname=qps
pkgver=1.10.15
_dlpkgver=5946
-pkgrel=1
+pkgrel=2
pkgdesc="a visual process manager, an X11 version of 'top' or 'ps'."
url="http://qps.kldp.net/projects/qps"
depends=('qt')
arch=('i686' 'x86_64')
license="GPL"
-source=(http://kldp.net/frs/download.php/${_dlpkgver}/qps-$pkgver.tar.bz2)
-md5sums=('25a6c6f8ac9172a6874e3514edf1eda1')
+source=(http://kldp.net/frs/download.php/${_dlpkgver}/qps-$pkgver.tar.bz2
+ version-patch.diff)
+md5sums=('25a6c6f8ac9172a6874e3514edf1eda1'
+ 'e323a796a3dbf44a99af386e867f7848')
build() {
cd $srcdir/$pkgname-$pkgver
+ patch -p0 <$srcdir/version-patch.diff
qmake
make
}
diff --git a/community/qps/version-patch.diff b/community/qps/version-patch.diff
new file mode 100644
index 000000000..bfddd2a0a
--- /dev/null
+++ b/community/qps/version-patch.diff
@@ -0,0 +1,14 @@
+--- proc_linux.cpp 2011-07-17 08:03:52.000000000 -0400
++++ proc_linux.cpp.new 2011-08-09 11:09:47.278589772 -0400
+@@ -1962,7 +1962,10 @@
+ int result;
+
+ result = sscanf(p, "%d.%d.%d", &major, &minor, &patch);
+- if(result < 3) {
++ if(result == 2) {
++ patch = 0;
++ }
++ else if(result < 3) {
+ fprintf(stderr, "Qps: can't determine version, read %s \n", p);
+ fprintf(stderr, "please report this bug.\n");
+ exit(1);
diff --git a/community/tomoyo-tools/PKGBUILD b/community/tomoyo-tools/PKGBUILD
index 1a141b782..0eb11d0fd 100644
--- a/community/tomoyo-tools/PKGBUILD
+++ b/community/tomoyo-tools/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 48297 2011-05-31 09:33:14Z spupykin $
+# $Id: PKGBUILD 53999 2011-08-11 17:49:23Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Jamie Nguyen <jamie AT tomoyolinux.co.uk>
pkgname=tomoyo-tools
-_basever=2.3.0
-_timestamp=20110511
+_basever=2.4.0
+_timestamp=20110806
pkgver=${_basever}.${_timestamp}
pkgrel=1
pkgdesc='TOMOYO Linux 2.3.x userspace tools for Linux kernel 2.6.36 and later'
@@ -15,15 +15,18 @@ depends=('ncurses')
makedepends=('help2man')
conflicts=('ccs-tools')
install=tomoyo-tools.install
-source=("http://sourceforge.jp/frs/redir.php?f=/tomoyo/48663/${pkgname}-${_basever}-${_timestamp}.tar.gz")
-md5sums=('bbbbaeb145ae12e5fe6154707807b90e')
+source=("tomoyo-tools-${_basever}-${_timestamp}.tar.gz::http://sourceforge.jp/frs/redir.php?m=iij&f=%2Ftomoyo%2F52848%2Ftomoyo-tools-${_basever}-${_timestamp}.tar.gz"
+ build-fix.patch)
+md5sums=('111109a71684f48bcac58bba07b8f49e'
+ '063c85ec6c56b90796ced9c203098f41')
build() {
- cd "${srcdir}/${pkgname}"
- make -j1
+ cd "${srcdir}/${pkgname}"
+ patch -p1 <$srcdir/build-fix.patch
+ make
}
package() {
- cd "${srcdir}/${pkgname}"
- make INSTALLDIR="${pkgdir}" install
+ cd "${srcdir}/${pkgname}"
+ make INSTALLDIR="${pkgdir}" install
}
diff --git a/community/tomoyo-tools/build-fix.patch b/community/tomoyo-tools/build-fix.patch
new file mode 100644
index 000000000..ca949072b
--- /dev/null
+++ b/community/tomoyo-tools/build-fix.patch
@@ -0,0 +1,11 @@
+diff -wbBur tomoyo-tools/usr_lib_tomoyo/tomoyo-editpolicy-agent.c tomoyo-tools.my/usr_lib_tomoyo/tomoyo-editpolicy-agent.c
+--- tomoyo-tools/usr_lib_tomoyo/tomoyo-editpolicy-agent.c 2011-08-06 04:00:00.000000000 +0400
++++ tomoyo-tools.my/usr_lib_tomoyo/tomoyo-editpolicy-agent.c 2011-08-11 21:47:05.000000000 +0400
+@@ -35,6 +35,7 @@
+ #include <dirent.h>
+ #define _GNU_SOURCE
+ #include <sched.h>
++#include <linux/sched.h>
+ #include <sys/mount.h>
+
+ static _Bool wait_data(const int fd)