summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gopherus/.SRCINFO8
-rw-r--r--gopherus/PKGBUILD14
-rw-r--r--gopherus/gopherus-1.2-ncheader.patch12
3 files changed, 29 insertions, 5 deletions
diff --git a/gopherus/.SRCINFO b/gopherus/.SRCINFO
index d6ac67d..6c0f905 100644
--- a/gopherus/.SRCINFO
+++ b/gopherus/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = gopherus
pkgdesc = Gopher client
- pkgver = 1.1
+ pkgver = 1.2
pkgrel = 1
url = http://gopherus.sourceforge.net
arch = i686
@@ -8,9 +8,11 @@ pkgbase = gopherus
license = BSD
depends = ncurses
optdepends = sdl2
- source = http://downloads.sourceforge.net/project/gopherus/v1.1/gopherus-1.1.tar.xz
+ source = http://downloads.sourceforge.net/project/gopherus/v1.2/gopherus-1.2.tar.xz
+ source = gopherus-1.2-ncheader.patch
source = gopherus.desktop
- sha256sums = ad69c9ba0d7ca568038bc0cf04e48847b61d39b766a4b937a3230ffcd7727331
+ sha256sums = 4a9710ba9f9a0a92c6d6f8a9d212b3beebe85ab588f79e64d299f3e7b816ab02
+ sha256sums = 9637df8df7dfa15232b5898170b1d1d0a485628d77c2a40150db914c4fb2b866
sha256sums = b01f1fa220cb788edf5c743a35aeff169f62eefee19d5f6dee96274e8c8cfd21
pkgname = gopherus
diff --git a/gopherus/PKGBUILD b/gopherus/PKGBUILD
index 385c87f..f4b74b9 100644
--- a/gopherus/PKGBUILD
+++ b/gopherus/PKGBUILD
@@ -3,7 +3,7 @@
# Upstream: https://git.metalpunks.info/arch-ports
pkgname=gopherus
-pkgver=1.1
+pkgver=1.2
pkgrel=1
pkgdesc="Gopher client"
arch=('i686' 'x86_64')
@@ -12,10 +12,20 @@ license=('BSD')
depends=('ncurses')
optdepends=('sdl2')
source=(http://downloads.sourceforge.net/project/${pkgname}/v${pkgver}/${pkgname}-${pkgver}.tar.xz
+ gopherus-1.2-ncheader.patch
gopherus.desktop)
-sha256sums=('ad69c9ba0d7ca568038bc0cf04e48847b61d39b766a4b937a3230ffcd7727331'
+sha256sums=('4a9710ba9f9a0a92c6d6f8a9d212b3beebe85ab588f79e64d299f3e7b816ab02'
+ '9637df8df7dfa15232b5898170b1d1d0a485628d77c2a40150db914c4fb2b866'
'b01f1fa220cb788edf5c743a35aeff169f62eefee19d5f6dee96274e8c8cfd21')
+prepare()
+{
+ cd "${pkgname}-${pkgver}"
+
+ # Fix curses header location
+ patch -p1 -i ../gopherus-1.2-ncheader.patch
+}
+
build() {
cd "${pkgname}-${pkgver}"
make -f Makefile.lin CFLAGS="${CFLAGS}"
diff --git a/gopherus/gopherus-1.2-ncheader.patch b/gopherus/gopherus-1.2-ncheader.patch
new file mode 100644
index 0000000..b6a747e
--- /dev/null
+++ b/gopherus/gopherus-1.2-ncheader.patch
@@ -0,0 +1,12 @@
+diff -r -u -N gopherus-1.2/ui/ui-curse.c gopherus-1.2-ncheader/ui/ui-curse.c
+--- gopherus-1.2/ui/ui-curse.c 2020-01-18 17:29:20.000000000 +0100
++++ gopherus-1.2-ncheader/ui/ui-curse.c 2020-01-23 22:37:16.625987506 +0100
+@@ -10,7 +10,7 @@
+ #define _XOPEN_SOURCE_EXTENDED
+
+ #include <locale.h>
+-#include <ncursesw/curses.h>
++#include <curses.h>
+ #include <stdio.h> /* this one contains the NULL definition */
+ #include <string.h>
+