summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gopherus-svn/.SRCINFO4
-rw-r--r--gopherus-svn/PKGBUILD17
-rw-r--r--gopherus-svn/gopherus-1.2-ncheader.patch12
3 files changed, 28 insertions, 5 deletions
diff --git a/gopherus-svn/.SRCINFO b/gopherus-svn/.SRCINFO
index 3be53df..5b37e68 100644
--- a/gopherus-svn/.SRCINFO
+++ b/gopherus-svn/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = gopherus-svn
pkgdesc = Gopher client
- pkgver = 1.2.r181
+ 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/gopherus-svn/PKGBUILD b/gopherus-svn/PKGBUILD
index d1806b4..fa65ff5 100644
--- a/gopherus-svn/PKGBUILD
+++ b/gopherus-svn/PKGBUILD
@@ -5,7 +5,7 @@
_pkgname=gopherus
_pkgver=1.2
pkgname=$_pkgname-svn
-pkgver=1.2.r181
+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-svn/gopherus-1.2-ncheader.patch b/gopherus-svn/gopherus-1.2-ncheader.patch
new file mode 100644
index 0000000..b6a747e
--- /dev/null
+++ b/gopherus-svn/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>
+