summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBalló György2018-02-08 02:27:48 +0000
committerBalló György2018-02-08 02:29:42 +0000
commitd1ba8058fc17789f6da45c7dd1340c1e8c88a1c2 (patch)
treeabd0cdfb0b639557e5cb7d77166d19f9c8ce4302
parentb38fcb60b3fecd6b1d856ffac3ae682783e1daa2 (diff)
downloadaur-lostirc.tar.gz
Fix build
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD7
-rw-r--r--fix-build.patch16
3 files changed, 23 insertions, 2 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 26366af0837..f0b3c3ccc13 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -12,8 +12,10 @@ pkgbase = lostirc
depends = libsigc++
source = http://downloads.sourceforge.net/sourceforge/lostirc/lostirc-0.4.6.tar.gz
source = lostirc-0.4.6-gcc.diff
+ source = fix-build.patch
md5sums = 501cd56bc0740d599540fb415718b939
md5sums = 5ac26f2e3beaa233b350de2cf8330923
+ md5sums = cb7d5e5f0bf6ae7055f79de8a2f24763
pkgname = lostirc
diff --git a/PKGBUILD b/PKGBUILD
index 28c138598ee..b8272255865 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,14 +10,17 @@ license=('GPL')
depends=('gtk2' 'gtkmm' 'libsigc++')
makedepends=('patch')
source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz
- $pkgname-$pkgver-gcc.diff)
+ $pkgname-$pkgver-gcc.diff
+ fix-build.patch)
md5sums=('501cd56bc0740d599540fb415718b939'
- '5ac26f2e3beaa233b350de2cf8330923')
+ '5ac26f2e3beaa233b350de2cf8330923'
+ 'cb7d5e5f0bf6ae7055f79de8a2f24763')
prepare() {
cd "${srcdir}"/$pkgname-$pkgver
patch -Np0 -i "${srcdir}"/$pkgname-$pkgver-gcc.diff
+ patch -Np1 -i "${srcdir}"/fix-build.patch
}
build() {
diff --git a/fix-build.patch b/fix-build.patch
new file mode 100644
index 00000000000..2348321a329
--- /dev/null
+++ b/fix-build.patch
@@ -0,0 +1,16 @@
+--- lostirc-0.4.6.orig/src/gtkmm/TextWidget.cpp
++++ lostirc-0.4.6/src/gtkmm/TextWidget.cpp
+@@ -210,11 +210,11 @@
+ std::vector< Glib::RefPtr<Gtk::TextTag> > tags;
+
+ Glib::RefPtr<Gtk::TextTag> fg = buffer->get_tag_table()->lookup(Glib::ustring("f")+crop(tp.fgnumber));
+- if (fg == 0)
++ if (!fg)
+ fg = buffer->get_tag_table()->lookup("f0");
+
+ Glib::RefPtr<Gtk::TextTag> bg = buffer->get_tag_table()->lookup(Glib::ustring("b")+crop(tp.bgnumber));
+- if (bg == 0)
++ if (!bg)
+ bg = buffer->get_tag_table()->lookup("b0");
+
+ tags.push_back(fg);