mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-18 23:27:01 +02:00
powerstat: update to 0.03.01.
Fix musl builds.
This commit is contained in:
parent
3e943c59e0
commit
32d1b7ad6b
2 changed files with 26 additions and 8 deletions
20
srcpkgs/powerstat/patches/0001-strlcpy-no-static.patch
Normal file
20
srcpkgs/powerstat/patches/0001-strlcpy-no-static.patch
Normal file
|
@ -0,0 +1,20 @@
|
|||
Author: ptrcnull <git@ptrcnull.me>
|
||||
Date: Sun Feb 6 08:51:27 2022 +0100
|
||||
|
||||
Remove "static" from strlcpy
|
||||
|
||||
powerstat.c:339:15: error: static declaration of 'strlcpy' follows non-static declaration
|
||||
|
||||
diff --git a/powerstat.c b/powerstat.c
|
||||
index cf5fc6e..7d03f66 100644
|
||||
--- a/powerstat.c
|
||||
+++ b/powerstat.c
|
||||
@@ -336,7 +336,7 @@ static const int signals[] = {
|
||||
* strlcpy()
|
||||
* BSD strlcpy
|
||||
*/
|
||||
-static size_t strlcpy(char *dst, const char *src, size_t len)
|
||||
+size_t strlcpy(char *dst, const char *src, size_t len)
|
||||
{
|
||||
char *d = dst;
|
||||
const char *s = src;
|
|
@ -1,15 +1,13 @@
|
|||
# Template file for 'powerstat'
|
||||
pkgname=powerstat
|
||||
version=0.02.25
|
||||
version=0.03.01
|
||||
revision=1
|
||||
build_style=gnu-makefile
|
||||
make_use_env=yes
|
||||
short_desc="Measures the power consumption using the ACPI battery information"
|
||||
maintainer="Enno Boland <gottox@voidlinux.org>"
|
||||
license="GPL-2.0-or-later"
|
||||
homepage="http://kernel.ubuntu.com/~cking/powerstat/"
|
||||
distfiles="http://kernel.ubuntu.com/~cking/tarballs/powerstat/powerstat-${version}.tar.gz"
|
||||
checksum=0ba3023979c494323af5090b29dd97d922ef79df1c44237443a06152fbeab136
|
||||
|
||||
do_build() {
|
||||
make CC=$CC CFLAGS+="-DVERSION=\\\"$version\\\" $CFLAGS" ${makejobs}
|
||||
}
|
||||
homepage="https://github.com/ColinIanKing/powerstat"
|
||||
changelog="https://raw.githubusercontent.com/ColinIanKing/powerstat/master/debian/changelog"
|
||||
distfiles="https://github.com/ColinIanKing/powerstat/archive/refs/tags/V${version}.tar.gz"
|
||||
checksum=601428cf3bba2a81fb83a9d6999a3ae4fb2d662a08435654a8aab74090f861ce
|
||||
|
|
Loading…
Add table
Reference in a new issue