summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD19
-rw-r--r--gopherus-1.2-ncheader.patch12
3 files changed, 29 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 27970554588..5b37e6841c6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = gopherus-svn
pkgdesc = Gopher client
- pkgver = 1.1.r123
+ pkgver = 1.2.r221
pkgrel = 1
url = http://gopherus.sourceforge.net
arch = i686
@@ -12,8 +12,10 @@ pkgbase = gopherus-svn
provides = gopherus
conflicts = gopherus
source = gopherus::svn://svn.code.sf.net/p/gopherus/code
+ source = gopherus-1.2-ncheader.patch
source = gopherus.desktop
sha256sums = SKIP
+ sha256sums = 9637df8df7dfa15232b5898170b1d1d0a485628d77c2a40150db914c4fb2b866
sha256sums = b01f1fa220cb788edf5c743a35aeff169f62eefee19d5f6dee96274e8c8cfd21
pkgname = gopherus-svn
diff --git a/PKGBUILD b/PKGBUILD
index 29059893574..fa65ff5633f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,9 +3,9 @@
# Upstream: https://git.metalpunks.info/arch-ports
_pkgname=gopherus
-_pkgver=1.1
+_pkgver=1.2
pkgname=$_pkgname-svn
-pkgver=1.1.r123
+pkgver=1.2.r221
pkgrel=1
pkgdesc="Gopher client"
arch=('i686' 'x86_64')
@@ -16,9 +16,11 @@ optdepends=('sdl2')
makedepends=('subversion')
conflicts=('gopherus')
provides=('gopherus')
-source=("$_pkgname::svn://svn.code.sf.net/p/gopherus/code"
- 'gopherus.desktop')
+source=(${_pkgname}::svn://svn.code.sf.net/p/gopherus/code
+ gopherus-1.2-ncheader.patch
+ gopherus.desktop)
sha256sums=('SKIP'
+ '9637df8df7dfa15232b5898170b1d1d0a485628d77c2a40150db914c4fb2b866'
'b01f1fa220cb788edf5c743a35aeff169f62eefee19d5f6dee96274e8c8cfd21')
pkgver() {
@@ -27,9 +29,16 @@ pkgver() {
printf "${_pkgver}.r%s" "${ver//[[:alpha:]]}"
}
+prepare() {
+ cd "${_pkgname}/trunk"
+
+ # Fix curses header location
+ patch -p1 -i ../../gopherus-1.2-ncheader.patch
+}
+
build() {
cd "${_pkgname}/trunk"
- make -f Makefile.lin CFLAGS="${CFLAGS}"
+ make -f Makefile.lin CFLAGS="${CFLAGS}" gopherus gopherus-sdl
}
package() {
diff --git a/gopherus-1.2-ncheader.patch b/gopherus-1.2-ncheader.patch
new file mode 100644
index 00000000000..b6a747e3f37
--- /dev/null
+++ b/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>
+