summaryrefslogtreecommitdiff
path: root/community/newsbeuter
diff options
context:
space:
mode:
Diffstat (limited to 'community/newsbeuter')
-rw-r--r--community/newsbeuter/PKGBUILD10
-rw-r--r--community/newsbeuter/newsbeuter-2.5-gcc47.patch61
2 files changed, 67 insertions, 4 deletions
diff --git a/community/newsbeuter/PKGBUILD b/community/newsbeuter/PKGBUILD
index 3a06787e7..fa0e14dca 100644
--- a/community/newsbeuter/PKGBUILD
+++ b/community/newsbeuter/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=newsbeuter
pkgver=2.5
pkgrel=1
pkgdesc="A RSS feed reader for the text console with special Podcast support"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
url="http://www.newsbeuter.org/"
license=('custom: MIT')
depends=('curl' 'json-c' 'libxml2' 'sqlite3' 'stfl')
@@ -15,12 +15,14 @@ optdepends=('ruby')
options=('!libtool')
install=$pkgname.install
changelog=$pkgname.changelog
-source=(http://www.newsbeuter.org/downloads/$pkgname-$pkgver.tar.gz)
-sha256sums=('abc54b7bee3e062cd166787edf35aadbeb0ae1f5fcc8d955b77143aaca096825')
+source=(http://www.newsbeuter.org/downloads/$pkgname-$pkgver.tar.gz
+ newsbeuter-2.5-gcc47.patch)
+sha256sums=('abc54b7bee3e062cd166787edf35aadbeb0ae1f5fcc8d955b77143aaca096825'
+ 'c48029c63cfc45d5df3bdbc4c9fd345463a61ad97f6eac797db62d63c49c6af8')
build() {
cd ${srcdir}/$pkgname-$pkgver
-
+ patch -Np1 -i ${srcdir}/newsbeuter-2.5-gcc47.patch
make prefix=/usr
}
diff --git a/community/newsbeuter/newsbeuter-2.5-gcc47.patch b/community/newsbeuter/newsbeuter-2.5-gcc47.patch
new file mode 100644
index 000000000..48ed1682a
--- /dev/null
+++ b/community/newsbeuter/newsbeuter-2.5-gcc47.patch
@@ -0,0 +1,61 @@
+--- newsbeuter-2.5/src/controller.cpp
++++ newsbeuter-2.5/src/controller.cpp
+@@ -30,6 +30,7 @@
+ #include <ctime>
+ #include <cassert>
+ #include <signal.h>
++#include <unistd.h>
+ #include <sys/utsname.h>
+ #include <langinfo.h>
+ #include <libgen.h>
+--- newsbeuter-2.5/src/google_api.cpp
++++ newsbeuter-2.5/src/google_api.cpp
+@@ -7,6 +7,8 @@
+ #include <config.h>
+ #include <utils.h>
+
++#include <unistd.h>
++
+ #include <curl/curl.h>
+
+ #define GREADER_LOGIN "https://www.google.com/accounts/ClientLogin"
+--- newsbeuter-2.5/src/pb_controller.cpp
++++ newsbeuter-2.5/src/pb_controller.cpp
+@@ -12,6 +12,7 @@
+ #include <pwd.h>
+ #include <cstdlib>
+ #include <signal.h>
++#include <unistd.h>
+
+ #include <keymap.h>
+ #include <configcontainer.h>
+--- newsbeuter-2.5/src/queueloader.cpp
++++ newsbeuter-2.5/src/queueloader.cpp
+@@ -8,6 +8,8 @@
+ #include <config.h>
+ #include <libgen.h>
+
++#include <unistd.h>
++
+ using namespace newsbeuter;
+
+ namespace podbeuter {
+--- newsbeuter-2.5/src/reloadthread.cpp
++++ newsbeuter-2.5/src/reloadthread.cpp
+@@ -1,5 +1,6 @@
+ #include <reloadthread.h>
+ #include <logger.h>
++#include <unistd.h>
+
+ namespace newsbeuter {
+
+--- newsbeuter-2.5/src/utils.cpp
++++ newsbeuter-2.5/src/utils.cpp
+@@ -11,6 +11,7 @@
+ #include <libgen.h>
+ #include <sys/utsname.h>
+
++#include <unistd.h>
+ #include <sstream>
+ #include <locale>
+ #include <cwchar>