summaryrefslogtreecommitdiff
path: root/community/multiget
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/multiget
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/multiget')
-rw-r--r--community/multiget/PKGBUILD43
-rw-r--r--community/multiget/gcc4.4.diff75
-rw-r--r--community/multiget/multiget.desktop8
3 files changed, 126 insertions, 0 deletions
diff --git a/community/multiget/PKGBUILD b/community/multiget/PKGBUILD
new file mode 100644
index 000000000..2d906b7ad
--- /dev/null
+++ b/community/multiget/PKGBUILD
@@ -0,0 +1,43 @@
+# Contributor: Allan McRae <mcrae_allan@hotmail.com>
+# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
+
+pkgname=multiget
+pkgver=3
+pkgrel=1
+pkgdesc="Easy to use GUI file downloader - svn version"
+url="http://multiget.sourceforge.net"
+license=('GPL')
+depends=('wxgtk')
+makedepends=('intltool' 'svn')
+arch=('i686' 'x86_64')
+source=()
+md5sums=()
+_svntrunk=https://multiget.svn.sourceforge.net/svnroot/multiget
+_svnmod=multiget
+
+build() {
+cd "$srcdir"
+
+ if [ -d $_svnmod/.svn ]; then
+ (cd $_svnmod && svn up -r $pkgver)
+ else
+ svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
+ fi
+ [ -d "$srcdir/$_svnmod-build" ] && rm -rf "$srcdir/$_svnmod-build"
+ cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
+ cd "$srcdir/$_svnmod-build"
+
+ ./autogen.sh --prefix=/usr --docdir=/usr/share/doc/${_svnmod}
+ make
+}
+package() {
+ cd ${srcdir}/$_svnmod-build
+ make DESTDIR=${pkgdir} install
+
+ install -Dm644 ${srcdir}/${_svnmod}-build/data/multiget.desktop \
+ ${pkgdir}/usr/share/applications/multiget.desktop
+ install -Dm644 ${srcdir}/${_svnmod}-build/newicons/48/logo_48.xpm \
+ ${pkgdir}/usr/share/pixmaps/multiget.xpm
+ mv $pkgdir/usr/doc/${_svnmod} $pkgdir/usr/share/doc
+ rmdir $pkgdir/usr/doc
+}
diff --git a/community/multiget/gcc4.4.diff b/community/multiget/gcc4.4.diff
new file mode 100644
index 000000000..7dc016c20
--- /dev/null
+++ b/community/multiget/gcc4.4.diff
@@ -0,0 +1,75 @@
+diff -aur multiget.orig/Makefile.am multiget.new/Makefile.am
+--- multiget.orig/Makefile.am 2009-11-24 14:23:26.000000000 +0100
++++ multiget.new/Makefile.am 2009-11-24 15:29:44.000000000 +0100
+@@ -3,7 +3,7 @@
+
+ SUBDIRS = src po
+
+-multigetdocdir = ${prefix}/doc/multiget
++multigetdocdir = ${prefix}/share/doc/multiget
+ multigetdoc_DATA = \
+ README\
+ COPYING\
+diff -aur multiget.orig/src/batch.cpp multiget.new/src/batch.cpp
+--- multiget.orig/src/batch.cpp 2009-11-24 14:23:26.000000000 +0100
++++ multiget.new/src/batch.cpp 2009-11-24 14:31:58.000000000 +0100
+@@ -25,6 +25,8 @@
+ #include "batch.h"
+ #include "common.h"
+ #include <iostream>
++#include <cstdio>
++#include <cstdlib>
+
+ CBatch::CBatch( std::string str )
+ {
+diff -aur multiget.orig/src/common.cpp multiget.new/src/common.cpp
+--- multiget.orig/src/common.cpp 2009-11-24 14:23:26.000000000 +0100
++++ multiget.new/src/common.cpp 2009-11-24 14:33:22.000000000 +0100
+@@ -26,7 +26,7 @@
+ #include "speedctrl.h"
+ #include "mirroradmin.h"
+
+-
++#include <cstdlib>
+ #include <pthread.h>
+
+ #ifdef WIN32
+diff -aur multiget.orig/src/mgftpbase.cpp multiget.new/src/mgftpbase.cpp
+--- multiget.orig/src/mgftpbase.cpp 2009-11-24 14:23:26.000000000 +0100
++++ multiget.new/src/mgftpbase.cpp 2009-11-24 14:52:04.000000000 +0100
+@@ -22,6 +22,9 @@
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
++#include <cstdlib>
++#include <cstdio>
++
+ #ifdef WIN32
+ #include <winsock2.h>
+ #endif
+diff -aur multiget.orig/src/mghttpbase.cpp multiget.new/src/mghttpbase.cpp
+--- multiget.orig/src/mghttpbase.cpp 2009-11-24 14:23:26.000000000 +0100
++++ multiget.new/src/mghttpbase.cpp 2009-11-24 14:57:55.000000000 +0100
+@@ -42,6 +42,9 @@
+ -100 : app connection not established
+
+ */
++
++#include <cstdio>
++
+ #ifdef WIN32
+ #include <winsock2.h>
+ #endif
+diff -aur multiget.orig/src/mgurlparser.cpp multiget.new/src/mgurlparser.cpp
+--- multiget.orig/src/mgurlparser.cpp 2009-11-24 14:23:26.000000000 +0100
++++ multiget.new/src/mgurlparser.cpp 2009-11-24 15:05:24.000000000 +0100
+@@ -26,6 +26,9 @@
+ #include "mgurlparser.h"
+ #include "common.h"
+ #include <iostream>
++#include <cstring>
++#include <cstdlib>
++
+ extern std::string gDefFtpPass;
+
+ using namespace std;
diff --git a/community/multiget/multiget.desktop b/community/multiget/multiget.desktop
new file mode 100644
index 000000000..dd2caf52d
--- /dev/null
+++ b/community/multiget/multiget.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=MultiGet
+Exec=multiget
+Terminal=false
+Type=Application
+Icon=multiget
+StartupNotify=true
+Categories=Network;