From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/bbpager/02_gcc43.dpatch | 40 +++++++++++++++++++++++++++++ community/bbpager/PKGBUILD | 36 ++++++++++++++++++++++++++ community/bbpager/fix-shm-linking-ugly.diff | 12 +++++++++ 3 files changed, 88 insertions(+) create mode 100644 community/bbpager/02_gcc43.dpatch create mode 100644 community/bbpager/PKGBUILD create mode 100644 community/bbpager/fix-shm-linking-ugly.diff (limited to 'community/bbpager') diff --git a/community/bbpager/02_gcc43.dpatch b/community/bbpager/02_gcc43.dpatch new file mode 100644 index 000000000..18b8a8c3d --- /dev/null +++ b/community/bbpager/02_gcc43.dpatch @@ -0,0 +1,40 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 02_gcc43.dpatch by Kevin Coyner +## +## DP: patch to fix missing #include statement for GCC 4.3 +## DP: see Debian bug #456071 and #474811 + +@DPATCH@ +diff -urNad bbpager-0.4.7~/src/Baseresource.cxx bbpager-0.4.7/src/Baseresource.cxx +--- bbpager-0.4.7~/src/Baseresource.cxx 2008-03-28 06:55:16.000000000 -0400 ++++ bbpager-0.4.7/src/Baseresource.cxx 2008-04-09 21:58:03.000000000 -0400 +@@ -20,6 +20,7 @@ + // + + #include ++#include + #include "Baseresource.h" + #include + #include "Menu.hh" +diff -urNad bbpager-0.4.7~/src/main.cxx bbpager-0.4.7/src/main.cxx +--- bbpager-0.4.7~/src/main.cxx 2008-03-28 06:55:16.000000000 -0400 ++++ bbpager-0.4.7/src/main.cxx 2008-04-09 21:58:03.000000000 -0400 +@@ -25,6 +25,7 @@ + + #include + #include ++#include + #include + + +diff -urNad bbpager-0.4.7~/src/resource.cxx bbpager-0.4.7/src/resource.cxx +--- bbpager-0.4.7~/src/resource.cxx 2007-03-11 17:47:07.000000000 -0400 ++++ bbpager-0.4.7/src/resource.cxx 2008-04-09 21:58:39.000000000 -0400 +@@ -19,6 +19,7 @@ + // (See the included file COPYING / GPL-2.0) + // + ++#include + #include "resource.h" + #include "blackboxstyle.h" + diff --git a/community/bbpager/PKGBUILD b/community/bbpager/PKGBUILD new file mode 100644 index 000000000..fa059de30 --- /dev/null +++ b/community/bbpager/PKGBUILD @@ -0,0 +1,36 @@ +# $Id: PKGBUILD 21749 2010-07-17 08:54:37Z lcarlier $ +# Maintainer: Thayer Williams +# Contributor: Tom Newsom + +pkgname=bbpager +pkgver=0.4.7 +pkgrel=3 +pkgdesc="A dockable pager for Blackbox and other window managers" +arch=(i686 x86_64) +url="http://bbtools.sourceforge.net/download.php?file=6" +license=("GPL") +depends=('gcc-libs' 'libxft' 'libxext') +makedepends=('gcc' 'blackbox') +source=(http://downloads.sourceforge.net/bbtools/$pkgname-$pkgver.tar.gz \ + 02_gcc43.dpatch \ + fix-shm-linking-ugly.diff) +md5sums=('4eaa91a4d66130af2f7a09c25f917386' + 'e985ef893f2080b3b2d47f900f861352' + '6e0b3915ff2f61ac3bab7434c93f37b3') + +build() { + cd ${srcdir}/$pkgname-$pkgver + + patch -Np1 -i ../02_gcc43.dpatch + patch -Np1 -i ../fix-shm-linking-ugly.diff + autoreconf + + ./configure --prefix=/usr + make +} + +package() { + cd ${srcdir}/$pkgname-$pkgver + + make prefix="$pkgdir/usr" install +} diff --git a/community/bbpager/fix-shm-linking-ugly.diff b/community/bbpager/fix-shm-linking-ugly.diff new file mode 100644 index 000000000..630218af7 --- /dev/null +++ b/community/bbpager/fix-shm-linking-ugly.diff @@ -0,0 +1,12 @@ +diff -U 3 -d -r -N -- bbpager-0.4.7/configure.ac bbpager-0.4.7b/configure.ac +--- bbpager-0.4.7/configure.ac 2008-01-14 18:03:50.000000000 +0100 ++++ bbpager-0.4.7b/configure.ac 2010-07-17 10:36:04.042040059 +0200 +@@ -68,7 +68,7 @@ + dnl pkgconfig checks for blackbox library + PKG_CHECK_MODULES(LIBBT, libbt) + CXXFLAGS="$CXXFLAGS $LIBBT_CFLAGS" +-LIBS="$LIBS $LIBBT_LIBS" ++LIBS="$LIBS $LIBBT_LIBS -lXext" + + dnl generate the config header + AM_CONFIG_HEADER(config.h) -- cgit v1.2.3-54-g00ecf