summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--social/nitroshare/PKGBUILD33
-rw-r--r--social/nitroshare/nitroshare.install4
-rw-r--r--social/qxmlrpc/01_build_targets.patch9
-rw-r--r--social/qxmlrpc/02_staticlib_removed.patch12
-rw-r--r--social/qxmlrpc/03_client.h_include_fix.patch13
-rw-r--r--social/qxmlrpc/04_do_not_link_gui.patch24
-rw-r--r--social/qxmlrpc/PKGBUILD44
-rw-r--r--social/qxmlrpc/SRCBUILD30
8 files changed, 169 insertions, 0 deletions
diff --git a/social/nitroshare/PKGBUILD b/social/nitroshare/PKGBUILD
new file mode 100644
index 000000000..7896a356e
--- /dev/null
+++ b/social/nitroshare/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Sid Karunaratne <sid at karunaratne dot net>
+# Contributor: Nathan Osman <https://launchpad.net/~george-edison55>
+
+pkgname=nitroshare
+pkgver=0.2
+pkgrel=2
+pkgdesc="Makes sending a file to another machine on the local network as easy as dragging-and-dropping"
+arch=('i686' 'x86_64')
+url="https://launchpad.net/nitroshare"
+license=('GPL3')
+depends=('qt' 'qjson' 'qxmlrpc')
+makedepends=()
+options=()
+source=(https://launchpad.net/${pkgname}/${pkgver}/${pkgver}/+download/${pkgname}_${pkgver}.tar.gz nitroshare.install)
+md5sums=('00f670fadf385ee2a920b67a4120295d'
+ '0e8cd7761d04a45d22d28ac7b98fa234')
+
+build () {
+ cd "${srcdir}/${pkgname}"
+ sed -i "s_target.path = /opt/extras.ubuntu.com/nitroshare_target.path = ${pkgdir}/usr/bin_g" nitroshare.pro
+ sed -i "s_Exec=/opt/extras.ubuntu.com/nitroshare/nitroshare_Exec=/usr/bin/${pkgname}_g" resource/other/extras-${pkgname}.desktop
+ qmake
+ make
+}
+
+package (){
+ cd "${srcdir}/${pkgname}"
+ make install
+ mkdir -p ${pkgdir}/usr/share/applications
+ install -Dm644 resource/other/extras-${pkgname}.desktop ${pkgdir}/usr/share/applications/
+ install -Dm644 resource/images/logo.png ${pkgdir}/usr/share/pixmaps/${pkgname}.png
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
diff --git a/social/nitroshare/nitroshare.install b/social/nitroshare/nitroshare.install
new file mode 100644
index 000000000..d6519a6e8
--- /dev/null
+++ b/social/nitroshare/nitroshare.install
@@ -0,0 +1,4 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor
+ update-desktop-database -q
+}
diff --git a/social/qxmlrpc/01_build_targets.patch b/social/qxmlrpc/01_build_targets.patch
new file mode 100644
index 000000000..bee6d5167
--- /dev/null
+++ b/social/qxmlrpc/01_build_targets.patch
@@ -0,0 +1,9 @@
+Index: qxmlrpc-0.0.svn6/qxmlrpc.pro
+===================================================================
+--- qxmlrpc-0.0.svn6.orig/qxmlrpc.pro 2010-06-04 14:39:33.000000000 +0400
++++ qxmlrpc-0.0.svn6/qxmlrpc.pro 2010-06-04 14:39:44.000000000 +0400
+@@ -1,3 +1,3 @@
+ TEMPLATE = subdirs
+-SUBDIRS = xmlrpc test/unit examples/client examples/server
++SUBDIRS = xmlrpc
+ CONFIG += ordered
diff --git a/social/qxmlrpc/02_staticlib_removed.patch b/social/qxmlrpc/02_staticlib_removed.patch
new file mode 100644
index 000000000..58f1d68d1
--- /dev/null
+++ b/social/qxmlrpc/02_staticlib_removed.patch
@@ -0,0 +1,12 @@
+Index: qxmlrpc-0.0.svn6/xmlrpc/xmlrpc.pro
+===================================================================
+--- qxmlrpc-0.0.svn6.orig/xmlrpc/xmlrpc.pro 2010-06-04 18:18:24.000000000 +0400
++++ qxmlrpc-0.0.svn6/xmlrpc/xmlrpc.pro 2010-06-04 18:23:23.000000000 +0400
+@@ -4,7 +4,6 @@
+ win32:TARGET = ../qxmlrpc
+
+ CONFIG += warn_on
+-CONFIG += staticlib
+ CONFIG += debug_and_release
+ CONFIG += precompile_header
+
diff --git a/social/qxmlrpc/03_client.h_include_fix.patch b/social/qxmlrpc/03_client.h_include_fix.patch
new file mode 100644
index 000000000..6f174cb95
--- /dev/null
+++ b/social/qxmlrpc/03_client.h_include_fix.patch
@@ -0,0 +1,13 @@
+Index: qxmlrpc-0.0.svn6/xmlrpc/client.h
+===================================================================
+--- qxmlrpc-0.0.svn6.orig/xmlrpc/client.h 2010-06-04 18:18:24.000000000 +0400
++++ qxmlrpc-0.0.svn6/xmlrpc/client.h 2010-06-04 18:20:21.000000000 +0400
+@@ -7,7 +7,7 @@
+ #include <qobject.h>
+ #include <QHttp>
+
+-#include "xmlrpc/variant.h"
++#include "variant.h"
+ class QAuthenticator;
+
+ namespace xmlrpc {
diff --git a/social/qxmlrpc/04_do_not_link_gui.patch b/social/qxmlrpc/04_do_not_link_gui.patch
new file mode 100644
index 000000000..c086d4990
--- /dev/null
+++ b/social/qxmlrpc/04_do_not_link_gui.patch
@@ -0,0 +1,24 @@
+Index: qxmlrpc-0.0.svn6/xmlrpc/stable.h
+===================================================================
+--- qxmlrpc-0.0.svn6.orig/xmlrpc/stable.h 2010-06-04 18:23:58.000000000 +0400
++++ qxmlrpc-0.0.svn6/xmlrpc/stable.h 2010-06-04 18:24:20.000000000 +0400
+@@ -2,7 +2,6 @@
+ #ifndef STABLE_H
+ #define STABLE_H
+ #if defined(__cplusplus) and not defined(__OBJC__)
+- #include <QtGui>
+ #include <QtXml>
+ #include <QtCore>
+ #include <QtNetwork>
+Index: qxmlrpc-0.0.svn6/xmlrpc/xmlrpc.pro
+===================================================================
+--- qxmlrpc-0.0.svn6.orig/xmlrpc/xmlrpc.pro 2010-06-04 18:23:54.000000000 +0400
++++ qxmlrpc-0.0.svn6/xmlrpc/xmlrpc.pro 2010-06-04 18:24:12.000000000 +0400
+@@ -10,6 +10,7 @@
+ DEPENDPATH += .
+ INCLUDEPATH += . ..
+
++QT -= gui
+ QT += xml
+ QT += network
+
diff --git a/social/qxmlrpc/PKGBUILD b/social/qxmlrpc/PKGBUILD
new file mode 100644
index 000000000..2e23c0a47
--- /dev/null
+++ b/social/qxmlrpc/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Sid Karunaratne <sid at karunaratne dot net>
+pkgname=qxmlrpc
+pkgver=6
+pkgrel=1
+pkgdesc="a full Qt4 based implementation of XML-RPC protocol"
+arch=('i686' 'x86_64')
+url="https://code.google.com/p/qxmlrpc"
+license=('LGPL')
+depends=('qt')
+makedepends=('subversion')
+source=("https://repo.parabolagnulinux.org/other/$pkgname-$pkgver-$pkgrel-any.src.tar.xz"{,.sig}
+ "01_build_targets.patch"
+ "02_staticlib_removed.patch"
+ "03_client.h_include_fix.patch"
+ "04_do_not_link_gui.patch")
+md5sums=("87a89cc118e816265989a87a2b3c9321"
+ "7f10b0f33b6d0a67136838740b4b7c72"
+ "7d997d9fc0f8ec08e7b0c640480eb941"
+ "ee1a3d2a284c93f41d3c76c163ee734d"
+ "c5cacf7e13b93abb3e8e223118c5abbb"
+ "8ff188be390bcd1966b354d7159fd0e6")
+
+build () {
+ cd "${srcdir}/${pkgname}"
+ msg "Starting build..."
+
+ patch -p1 < ../01_build_targets.patch
+ patch -p1 < ../02_staticlib_removed.patch
+ patch -p1 < ../03_client.h_include_fix.patch
+ patch -p1 < ../04_do_not_link_gui.patch
+
+ qmake
+ make
+}
+
+package() {
+ install -Dm 755 "$srcdir/$pkgname/libqxmlrpc.so" "$pkgdir/usr/lib/libqxmlrpc.so"
+ install -Dm 755 "$srcdir/$pkgname/xmlrpc/client.h" "$pkgdir/usr/include/qxmlrpc/client.h"
+ install -Dm 755 "$srcdir/$pkgname/xmlrpc/request.h" "$pkgdir/usr/include/qxmlrpc/request.h"
+ install -Dm 755 "$srcdir/$pkgname/xmlrpc/response.h" "$pkgdir/usr/include/qxmlrpc/response.h"
+ install -Dm 755 "$srcdir/$pkgname/xmlrpc/server.h" "$pkgdir/usr/include/qxmlrpc/server.h"
+ install -Dm 755 "$srcdir/$pkgname/xmlrpc/serverintrospection.h" "$pkgdir/usr/include/qxmlrpc/serverintrospection.h"
+ install -Dm 755 "$srcdir/$pkgname/xmlrpc/variant.h" "$pkgdir/usr/include/qxmlrpc/variant.h"
+}
diff --git a/social/qxmlrpc/SRCBUILD b/social/qxmlrpc/SRCBUILD
new file mode 100644
index 000000000..b5fe17ebf
--- /dev/null
+++ b/social/qxmlrpc/SRCBUILD
@@ -0,0 +1,30 @@
+pkgname=qxmlrpc
+pkgver=6
+pkgrel=1
+pkgdesc="a full Qt4 based implementation of XML-RPC protocol"
+arch=('any')
+url="https://code.google.com/p/qxmlrpc"
+license=('LGPL')
+makedepends=('subversion')
+_svntrunk="http://qxmlrpc.googlecode.com/svn/trunk/"
+_svnmod="qxmlrpc"
+
+build() {
+ msg "Connecting to SVN server...."
+
+ if [[ -d "$_svnmod/.svn" ]]; then
+ (cd "$_svnmod" && svn up -r "$pkgver")
+ else
+ svn co "$_svntrunk" --config-dir ./ -r "$pkgver" "$_svnmod"
+ fi
+
+ msg "SVN checkout done or server timeout"
+}
+
+package() {
+ export PKGEXT=.src.tar.xz
+ export PKGDEST=${SRCDEST}
+
+ mv ${srcdir}/${_svnmod} ${pkgdir}/
+
+}