summaryrefslogtreecommitdiff
path: root/community/vyqchat
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/vyqchat
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/vyqchat')
-rw-r--r--community/vyqchat/PKGBUILD29
-rw-r--r--community/vyqchat/build-fix.patch36
2 files changed, 65 insertions, 0 deletions
diff --git a/community/vyqchat/PKGBUILD b/community/vyqchat/PKGBUILD
new file mode 100644
index 000000000..8bffed66f
--- /dev/null
+++ b/community/vyqchat/PKGBUILD
@@ -0,0 +1,29 @@
+# $Id: PKGBUILD 14449 2010-04-03 16:01:29Z foutrelis $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
+
+pkgname=vyqchat
+pkgver=0.2.8
+pkgrel=3
+pkgdesc="vypress compatible qt chat (can work without server)"
+arch=('i686' 'x86_64')
+url="http://linux.bydg.org/~yogin/"
+license=('GPL')
+depends=('qt3' 'libao' 'libxi')
+source=(http://www.uic.unn.ru/~soed/programs/chat/$pkgname-$pkgver.tar.gz
+ build-fix.patch)
+md5sums=('67974bc5df1ed0d63785d04325444d4f' 'de3af70da3743c27929f04f72c837412')
+
+build() {
+ . /etc/profile.d/qt3.sh
+ cd ${startdir}/src/$pkgname-${pkgver}
+ patch -Np1 <../build-fix.patch
+ # Use _LDADD to properly compile with --as-needed
+ sed -i 's/vyqchat_LDFLAGS/vyqchat_LDADD/' src/Makefile.am || return 1
+ # Correct acinclude.m4 to avoid empty else block
+ sed -i 's:# Leave bnv_qt_lib_dir defined:/bin/true:' acinclude.m4 || return 1
+ autoreconf -v || return 1
+ ./configure --prefix=/usr
+ make || return 1
+ make DESTDIR=$startdir/pkg install || return 1
+}
diff --git a/community/vyqchat/build-fix.patch b/community/vyqchat/build-fix.patch
new file mode 100644
index 000000000..7ad70ab2f
--- /dev/null
+++ b/community/vyqchat/build-fix.patch
@@ -0,0 +1,36 @@
+diff -wbBur vyqchat-0.2.8/src/settings.h vyqchat-0.2.8.my/src/settings.h
+--- vyqchat-0.2.8/src/settings.h 2005-07-18 22:54:08.000000000 +0400
++++ vyqchat-0.2.8.my/src/settings.h 2007-02-21 21:05:11.000000000 +0300
+@@ -88,7 +88,7 @@
+
+ //
+ // Get methods
+- const UUID& Settings::getUUID() const { return uuid; }
++ const UUID& getUUID() const { return uuid; }
+ const QString& getIconThemeName() const { return icontheme; }
+ const QString& getNick() const { return nick; }
+ char getGender() const { return gender; }
+diff -wbBur vyqchat-0.2.8/src/sound.h vyqchat-0.2.8.my/src/sound.h
+--- vyqchat-0.2.8/src/sound.h 2005-07-18 22:54:08.000000000 +0400
++++ vyqchat-0.2.8.my/src/sound.h 2007-02-21 21:04:45.000000000 +0300
+@@ -47,7 +47,7 @@
+ bool reload_samples(Settings &settings);
+ static bool init(Settings *settings);
+ static void close();
+- static const QString& Sound::error();
++ static const QString& error();
+ static void play(VyEvent evt);
+ };
+
+diff -wbBur vyqchat-0.2.8/src/user.h vyqchat-0.2.8.my/src/user.h
+--- vyqchat-0.2.8/src/user.h 2005-07-18 23:03:01.000000000 +0400
++++ vyqchat-0.2.8.my/src/user.h 2007-02-21 21:04:14.000000000 +0300
+@@ -38,7 +38,7 @@
+ }
+ return false;
+ }
+- bool User::setStatus(char s) { status=s; return true; }
++ bool setStatus(char s) { status=s; return true; }
+ void setNick(const QString &nick) { setText(nick); }
+ int incDeadCounter() { if (dcnt<1) dcnt++; return dcnt; }
+ int decDeadCounter() { return --dcnt; }