diff --git a/srcpkgs/batsignal/patches/cflags.patch b/srcpkgs/batsignal/patches/cflags.patch new file mode 100644 index 0000000000..4bf91c2bb2 --- /dev/null +++ b/srcpkgs/batsignal/patches/cflags.patch @@ -0,0 +1,14 @@ +--- Makefile 2020-07-31 18:42:11.268427773 +0100 ++++ Makefile 2020-07-31 19:30:33.904122987 +0100 +@@ -7,9 +7,9 @@ + PREFIX = /usr/local + MANPREFIX = $(PREFIX)/share/man + +-CC = cc ++CC ?= cc + LD = ld +-CFLAGS = -std=c99 -pedantic -Wall -Wextra -Werror -Wno-unused-parameter -Os -s -D_GNU_SOURCE $(shell pkg-config --cflags libnotify) ++CFLAGS += -std=c99 -D_GNU_SOURCE $(shell pkg-config --cflags libnotify) + LDLIBS = $(shell pkg-config --libs libnotify) + + SRC = main.c version.h diff --git a/srcpkgs/batsignal/template b/srcpkgs/batsignal/template new file mode 100644 index 0000000000..72775d9640 --- /dev/null +++ b/srcpkgs/batsignal/template @@ -0,0 +1,18 @@ +# Template file for 'batsignal' +pkgname=batsignal +version=1.1.2 +revision=1 +build_style=gnu-makefile +make_use_env=yes +hostmakedepends="pkg-config" +makedepends="libnotify-devel" +short_desc="Simple battery monitor" +maintainer="André Cerqueira " +license="ISC" +homepage="https://github.com/electrickite/batsignal" +distfiles="https://github.com/electrickite/batsignal/archive/${version}.tar.gz" +checksum=00cb30df33b5fee049963657f341e963a0f094dbf1620397bf1e56fa07191e7c + +post_install() { + vlicense LICENSE +}