Skip to content

Commit

Permalink
sunwait: update to 0.9.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
abenson committed Mar 29, 2023
1 parent 4c2070f commit fa8e9bb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
11 changes: 11 additions & 0 deletions srcpkgs/sunwait/patches/fix-makefile.patch
@@ -0,0 +1,11 @@
--- a/makefile
+++ b/makefile
@@ -16,7 +16,7 @@
all: $(EXECUTABLE)

.c.o:
- $(CC) $(CFLAGS) $< -o $@
+ $(CC) -c $(CFLAGS) $< -o $@

$(EXECUTABLE): $(OBJECTS)
$(CC) $(OBJECTS) -o $@ $(LDFLAGS)
15 changes: 7 additions & 8 deletions 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 <maldridge@voidlinux.org>"
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
}

0 comments on commit fa8e9bb

Please sign in to comment.