From bbc163d35010fb456273d2b3170bffdd10242449 Mon Sep 17 00:00:00 2001 From: Andrew Benson Date: Tue, 28 Mar 2023 08:29:03 -0500 Subject: [PATCH] sunwait: update to 0.9.1. --- srcpkgs/sunwait/patches/fix-makefile.patch | 20 ++++++++++++++++++++ srcpkgs/sunwait/template | 15 +++++++-------- 2 files changed, 27 insertions(+), 8 deletions(-) create mode 100644 srcpkgs/sunwait/patches/fix-makefile.patch diff --git a/srcpkgs/sunwait/patches/fix-makefile.patch b/srcpkgs/sunwait/patches/fix-makefile.patch new file mode 100644 index 000000000000..7b6e453b14a6 --- /dev/null +++ b/srcpkgs/sunwait/patches/fix-makefile.patch @@ -0,0 +1,20 @@ +--- a/makefile ++++ b/makefile +@@ -8,7 +8,7 @@ + + CFLAGS?=-c -Wall -std=c99 -O2 -Wextra -pedantic + CXXFLAGS=-c -Wall +-LDFLAGS= -lm ++LDFLAGS+=-lm + SOURCES=sunwait.c sunriset.c print.c + HEADERS=sunwait.h sunriset.h print.h + OBJECTS=$(SOURCES:.c=.o) +@@ -16,7 +16,7 @@ + all: $(EXECUTABLE) + + .c.o: +- $(CC) $(CFLAGS) $< -o $@ ++ $(CC) -c $(CFLAGS) $< -o $@ + + $(EXECUTABLE): $(OBJECTS) + $(CC) $(OBJECTS) -o $@ $(LDFLAGS) diff --git a/srcpkgs/sunwait/template b/srcpkgs/sunwait/template index 2110ecacfc74..162a3da535fc 100644 --- a/srcpkgs/sunwait/template +++ b/srcpkgs/sunwait/template @@ -1,18 +1,17 @@ # Template file for 'sunwait' pkgname=sunwait -version=0.20041208 -revision=2 +reverts="0.20041208_1" +version=0.9.1 +revision=1 build_style=gnu-makefile +make_use_env=yes short_desc="Small C program calculating sunrise and sunset" maintainer="Michael Aldridge " -license="GPL-2.0-only" +license="GPL-3.0-only" homepage="http://www.risacher.org/sunwait/" -distfiles="${homepage}${pkgname}-${version##*.}.tar.gz" -checksum=46ecd64142e0c7c2decac8df241b78ccae0d1b323929fb4d61aa1acc16a9ff96 +distfiles="https://github.com/risacher/sunwait/archive/${version}.tar.gz" +checksum=02fe8165a60ede67f1d0dc98acf4dfbe40865a215d9bd039f57806f1e100b406 -pre_build() { - sed -i 's/\(-lm\)/\1 $(LDFLAGS)/' Makefile -} do_install() { vbin sunwait }