add globe

This commit is contained in:
2025-04-29 16:51:39 -05:00
parent 809e7d33b9
commit 79c41a8ab5
2 changed files with 40 additions and 0 deletions

View File

@ -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 );
}

22
srcpkgs/globe/template Normal file
View File

@ -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 <me@zacharyscheiman.com>"
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
}