From 9edec8dee0e466ee6914a04bf0cc11b93cf2f02c Mon Sep 17 00:00:00 2001 From: maxice8 Date: Tue, 2 Oct 2018 11:16:25 -0300 Subject: [PATCH] xbattmon: stop vendoring config.h files --- srcpkgs/xbattmon/files/config.h | 13 ------------- srcpkgs/xbattmon/template | 2 +- 2 files changed, 1 insertion(+), 14 deletions(-) delete mode 100644 srcpkgs/xbattmon/files/config.h diff --git a/srcpkgs/xbattmon/files/config.h b/srcpkgs/xbattmon/files/config.h deleted file mode 100644 index 96d62a6202..0000000000 --- a/srcpkgs/xbattmon/files/config.h +++ /dev/null @@ -1,13 +0,0 @@ -char *colors[] = { - [COLOR_BAT_CHARGED] = "green", - [COLOR_BAT_LEFT2CHARGE] = "grey", - [COLOR_BAT_DRAINED] = "red", - [COLOR_BAT_LEFT2DRAIN] = "blue" -}; - -unsigned int thickness = 2; /* 2 pixels by default */ -int placement = BOTTOM; /* set to TOP if you want a top placement */ -int maxcap = 100; /* maximum battery capacity */ -int raise = 0; /* set to 1 if you want the bar to be raised on top of other windows */ -int critical = 5; /* start blinking below 5% */ -int transparent = 0; /* transparent mode */ diff --git a/srcpkgs/xbattmon/template b/srcpkgs/xbattmon/template index 24a4711f60..3d231f1b1e 100644 --- a/srcpkgs/xbattmon/template +++ b/srcpkgs/xbattmon/template @@ -13,6 +13,6 @@ distfiles="http://dl.2f30.org/releases/${pkgname}-${version}.tar.gz" checksum=4ff7b156c69a56e4e6649a9f3bf5ee72858f856e7aad3614e8b3275a29f226ff pre_build() { - cp "${FILESDIR}/config.h" . + [ -e ${FILESDIR}/config.h ] && cp ${FILESDIR}/config.h config.h sed -i '/^PREFIX =*/d' config.mk }