summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorarcan1s2015-08-15 15:28:35 +0300
committerarcan1s2015-08-15 15:28:35 +0300
commitb46325a3b6c44217febca6eefa0ad19559ec14fa (patch)
tree529a293a23dab3df47abc9eda4398ed1b86eecf7
downloadaur-sim.tar.gz
upload sim
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD40
-rw-r--r--arch-sim-build.patch37
-rw-r--r--sim.install8
4 files changed, 107 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b8109b60ca7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = sim
+ pkgdesc = Multiple protocol instant messenger
+ pkgver = 0.9.5
+ pkgrel = 1
+ url = http://www.sim-im.org/
+ install = sim.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = cmake
+ depends = aspell
+ depends = hicolor-icon-theme
+ depends = libxslt
+ depends = libxss
+ depends = qt3
+ source = http://downloads.sourceforge.net/project/sim-im.berlios/sim-0.9.5-svn20080806-dfsg.tar.bz2
+ source = arch-sim-build.patch
+ md5sums = aae36d0ef026ed0041c02f28218705fd
+ md5sums = bd83c5b67bee6d7dd606538ebd20d8fa
+
+pkgname = sim
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..06eb066c419
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Evgeniy Alekseev <arcanis at archlinux dot org>
+
+pkgname=sim
+pkgver=0.9.5
+_pkgver=0.9.5-svn20080806-dfsg
+pkgrel=1
+pkgdesc="Multiple protocol instant messenger"
+arch=('i686' 'x86_64')
+url="http://www.sim-im.org/"
+license=('GPL')
+depends=('aspell' 'hicolor-icon-theme' 'libxslt' 'libxss' 'qt3')
+makedepends=('cmake')
+install="${pkgname}.install"
+source=("http://downloads.sourceforge.net/project/sim-im.berlios/${pkgname}-${_pkgver}.tar.bz2"
+ "arch-sim-build.patch")
+md5sums=('aae36d0ef026ed0041c02f28218705fd'
+ 'bd83c5b67bee6d7dd606538ebd20d8fa')
+
+prepare() {
+ rm -rf "${srcdir}/build"
+ mkdir "${srcdir}/build"
+
+ # drop own qt3find to use system one
+ rm -rf "${srcdir}/sim-0.9.5-svn20080806-dfsg/cmake/FindQt3.cmake"
+ # fix build with xml and x11
+ patch -p0 -i "arch-sim-build.patch"
+}
+
+build() {
+ cd "${srcdir}/build"
+ cmake "../${pkgname}-${_pkgver}" \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/build"
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/arch-sim-build.patch b/arch-sim-build.patch
new file mode 100644
index 00000000000..d9a59e429fe
--- /dev/null
+++ b/arch-sim-build.patch
@@ -0,0 +1,37 @@
+diff -ruN sim-0.9.5-svn20080806-dfsg.orig/sim/sim.cpp sim-0.9.5-svn20080806-dfsg/sim/sim.cpp
+--- sim-0.9.5-svn20080806-dfsg.orig/sim/sim.cpp 2015-08-15 15:03:08.548399072 +0300
++++ sim-0.9.5-svn20080806-dfsg/sim/sim.cpp 2007-12-31 19:14:38.000000000 +0300
+@@ -290,9 +290,6 @@
+ #else
+ SimApp app(_argc, _argv);
+ #endif
+-#if !defined(QT_MACOSX_VERSION) && !defined(QT_MAC) && !defined(__OS2__)
+- old_errhandler = XSetErrorHandler(x_errhandler);
+-#endif
+ #else
+ for (int i = 0; i < argc; i++){
+ QCString arg = argv[i];
+diff -ruN sim-0.9.5-svn20080806-dfsg.orig/sim/xsl.cpp sim-0.9.5-svn20080806-dfsg/sim/xsl.cpp
+--- sim-0.9.5-svn20080806-dfsg.orig/sim/xsl.cpp 2015-08-15 15:03:08.548399072 +0300
++++ sim-0.9.5-svn20080806-dfsg/sim/xsl.cpp 2006-12-18 21:49:50.000000000 +0300
+@@ -21,6 +21,11 @@
+ #include <libxslt/transform.h>
+ #include <libxslt/xsltutils.h>
+
++#ifndef LIBXML2_NEW_BUFFER
++#define xmlBufContent(buf) ((buf)->content)
++#define xmlBufUse(buf) ((buf)->use)
++#endif
++
+ #include <qfile.h>
+ #include <qregexp.h>
+
+@@ -128,7 +123,7 @@
+ xsltSaveResultTo(buf, res, d->styleSheet);
+ xmlFreeDoc(res);
+
+- QString result = QString::fromUtf8((char*)(buf->buffer->content));
++ QString result = QString::fromUtf8((char*)(xmlBufContent(buf->buffer)));
+ xmlOutputBufferClose(buf);;
+
+ return result;
diff --git a/sim.install b/sim.install
new file mode 100644
index 00000000000..c123f180eb7
--- /dev/null
+++ b/sim.install
@@ -0,0 +1,8 @@
+post_install() {
+ update-desktop-database -q
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+}
+
+post_upgrade() {
+ post_install
+}