add globe
This commit is contained in:
18
srcpkgs/globe/patches/remove_stdlib_req.patch
Normal file
18
srcpkgs/globe/patches/remove_stdlib_req.patch
Normal 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
22
srcpkgs/globe/template
Normal 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
|
||||
}
|
Reference in New Issue
Block a user