diff options
author | géballin | 2024-03-27 23:31:49 +0100 |
---|---|---|
committer | géballin | 2024-03-27 23:31:49 +0100 |
commit | a806e9314e646a74feca5ed826530c8cb7938d6a (patch) | |
tree | 49e683eae7323ce324ffd4ffbf364a0d69676c33 | |
parent | 2ff6a067396e6d1030bf7de05ea916b625d2b4df (diff) | |
download | aur-a806e9314e646a74feca5ed826530c8cb7938d6a.tar.gz |
Make robodoc compile on modern gcc.
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 9 | ||||
-rw-r--r-- | troff_generator.c.patch | 19 |
3 files changed, 28 insertions, 4 deletions
@@ -1,7 +1,7 @@ pkgbase = robodoc pkgdesc = ROBODoc is program documentation tool. It works with many programming languages: For instance C, Pascal, Shell Scripts, Assembler, COBOL, Occam, Postscript, Forth, Tcl/Tk, C++, Java -- basically any program in which you can use remarks/comments. pkgver = 4.99.44 - pkgrel = 1 + pkgrel = 2 url = https://rfsber.home.xs4all.nl/Robo/ arch = x86_64 arch = i686 @@ -9,6 +9,8 @@ pkgbase = robodoc makedepends = gcc makedepends = make source = http://rfsber.home.xs4all.nl/Robo/archives/robodoc-4.99.44.tar.gz + source = troff_generator.c.patch md5sums = ad983c18379800859158b0fedc8378f3 + md5sums = 9c1cd4e54928c602a931f54b300b989d pkgname = robodoc @@ -1,7 +1,7 @@ # Maintainer: Geballin - Guillaume Ballin <macniaque at free dot fr> pkgname=robodoc pkgver=4.99.44 -pkgrel=1 +pkgrel=2 pkgdesc="ROBODoc is program documentation tool. It works with many programming languages: For instance C, Pascal, Shell Scripts, Assembler, COBOL, Occam, Postscript, Forth, Tcl/Tk, C++, Java -- basically any program in which you can use remarks/comments." url="https://rfsber.home.xs4all.nl/Robo/" arch=('x86_64' 'i686') @@ -13,13 +13,16 @@ conflicts=() replaces=() backup=() install= -source=("http://rfsber.home.xs4all.nl/Robo/archives/robodoc-${pkgver}.tar.gz") +source=("http://rfsber.home.xs4all.nl/Robo/archives/robodoc-${pkgver}.tar.gz" + "troff_generator.c.patch") -md5sums=('ad983c18379800859158b0fedc8378f3') +md5sums=('ad983c18379800859158b0fedc8378f3' + '9c1cd4e54928c602a931f54b300b989d') build() { tar xzf robodoc-${pkgver}.tar.gz cd robodoc-${pkgver} + patch -Np1 -i ../../troff_generator.c.patch ./configure --prefix=/usr make } diff --git a/troff_generator.c.patch b/troff_generator.c.patch new file mode 100644 index 000000000000..1bd25116949a --- /dev/null +++ b/troff_generator.c.patch @@ -0,0 +1,19 @@ +--- a/Source/troff_generator.c 2021-01-28 23:24:55.000000000 +0100 ++++ b/Source/troff_generator.c 2024-02-16 16:30:54.120883223 +0100 +@@ -30,7 +30,7 @@ + #include <ctype.h> + + #include <sys/param.h> +-#include <sys/unistd.h> ++#include <unistd.h> + + #include "troff_generator.h" + #include "util.h" +@@ -560,6 +560,6 @@ + * SOURCE + */ + { +- fprintf( dest_doc, line_number_string ); ++ fprintf( dest_doc, "%s", line_number_string ); + } + /******/ |