From 79c41a8ab59767d26fed78d4df99c2867456e4ef Mon Sep 17 00:00:00 2001 From: Squibid Date: Tue, 29 Apr 2025 16:51:39 -0500 Subject: [PATCH] add globe --- srcpkgs/globe/patches/remove_stdlib_req.patch | 18 +++++++++++++++ srcpkgs/globe/template | 22 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 srcpkgs/globe/patches/remove_stdlib_req.patch create mode 100644 srcpkgs/globe/template diff --git a/srcpkgs/globe/patches/remove_stdlib_req.patch b/srcpkgs/globe/patches/remove_stdlib_req.patch new file mode 100644 index 0000000..14f6ca3 --- /dev/null +++ b/srcpkgs/globe/patches/remove_stdlib_req.patch @@ -0,0 +1,18 @@ +--- globe.c ++++ globe.c +@@ -733,7 +733,7 @@ + + + int +-main( int argc, char* argv ) ++main( int argc, char** argv ) + { + time_t now; + int gnum, lnum; +@@ -743,6 +743,4 @@ + gnum = ( now + OFFSET ) % SECSPERDAY / ( SECSPERDAY / NGLOBES ); + for ( lnum = 0; lnum < NLINES; ++lnum ) + puts( globes[gnum][lnum] ); +- +- exit( 0 ); + } diff --git a/srcpkgs/globe/template b/srcpkgs/globe/template new file mode 100644 index 0000000..d7043aa --- /dev/null +++ b/srcpkgs/globe/template @@ -0,0 +1,22 @@ +# Template file for 'globe' +pkgname=globe +version=1 +revision=1 +archs="x86_64" +makedepends="git" +build_style=gnu-makefile +short_desc="display the currently-lighted face of Earth in ASCII" +maintainer="Zachary Scheiman " +license="MIT" +homepage="https://github.com/Distrotech/globe" +patch_args="-Np0" + +do_fetch() { + git clone https://github.com/Distrotech/globe.git $wrksrc + cd $wrksrc +} + +do_install() { + vbin globe + vman globe.1 +}