Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: herbe-1.0.0
@ 2021-04-28 10:53 biopsin
  2021-04-28 11:51 ` [PR PATCH] [Merged]: " ericonr
  0 siblings, 1 reply; 3+ messages in thread
From: biopsin @ 2021-04-28 10:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1723 bytes --]

There is a new pull request by biopsin against master on the void-packages repository

https://github.com/biopsin/void-packages patch-1
https://github.com/void-linux/void-packages/pull/30558

New package: herbe-1.0.0
Tested local build for
[x] armv7l-musl
[x] i686
[x] x86_64/-musl

Closes PR https://github.com/void-linux/void-packages/pull/27195
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [x] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (ARCH-LIBC)
- [x] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [x] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/30558.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-patch-1-30558.patch --]
[-- Type: text/x-diff, Size: 1110 bytes --]

From 0ae4fa93a577caf8fc9a4454af01a9858a381a61 Mon Sep 17 00:00:00 2001
From: biopsin <biopsin@teknik.io>
Date: Wed, 28 Apr 2021 10:31:57 +0000
Subject: [PATCH] New package: herbe-1.0.0

---
 srcpkgs/herbe/template | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 srcpkgs/herbe/template

diff --git a/srcpkgs/herbe/template b/srcpkgs/herbe/template
new file mode 100644
index 000000000000..000e2b1f444d
--- /dev/null
+++ b/srcpkgs/herbe/template
@@ -0,0 +1,22 @@
+# Template file for 'herbe'
+pkgname=herbe
+version=1.0.0
+revision=1
+build_style=gnu-makefile
+makedepends="libXft-devel"
+short_desc="Daemon-less notifications without D-Bus"
+maintainer="biopsin <biopsin@teknik.io>"
+license="MIT"
+homepage="https://github.com/dudik/herbe"
+distfiles="${homepage}/archive/${version}.tar.gz"
+checksum=78e454159050c86e030fb5a6cf997ac914345210cdf5a4ca4d7600c5296b7f76
+
+do_build() {
+	# Patch Makefile to locate <ft2build.h>
+	vsed 's|-I/usr/include/freetype2|-I${XBPS_CROSS_BASE}/usr/include/freetype2|' \
+		-i ${wrksrc}/Makefile
+}
+
+post_install() {
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PR PATCH] [Merged]: New package: herbe-1.0.0
  2021-04-28 10:53 [PR PATCH] New package: herbe-1.0.0 biopsin
@ 2021-04-28 11:51 ` ericonr
  0 siblings, 0 replies; 3+ messages in thread
From: ericonr @ 2021-04-28 11:51 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1572 bytes --]

There's a merged pull request on the void-packages repository

New package: herbe-1.0.0
https://github.com/void-linux/void-packages/pull/30558

Description:
Tested local build for
[x] armv7l-musl
[x] i686
[x] x86_64/-musl

Closes PR https://github.com/void-linux/void-packages/pull/27195
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [x] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [x] I built this PR locally for my native architecture, (ARCH-LIBC)
- [x] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [x] armv7l
  - [ ] armv6l-musl
-->


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PR PATCH] New package: herbe-1.0.0
@ 2020-12-16 10:14 tuxliban
  0 siblings, 0 replies; 3+ messages in thread
From: tuxliban @ 2020-12-16 10:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 374 bytes --]

There is a new pull request by tuxliban against master on the void-packages repository

https://github.com/tuxliban/void-packages herbe
https://github.com/void-linux/void-packages/pull/27195

New package: herbe-1.0.0
Daemon-less notifications without D-Bus. Minimal and lightweight


A patch file from https://github.com/void-linux/void-packages/pull/27195.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-herbe-27195.patch --]
[-- Type: text/x-diff, Size: 4150 bytes --]

From 19b83b04173aafc9342c41520d4d8122efe9c975 Mon Sep 17 00:00:00 2001
From: tuxliban <tenshalito@gmail.com>
Date: Wed, 16 Dec 2020 03:56:49 -0600
Subject: [PATCH] New package: herbe-1.0.0

---
 srcpkgs/herbe/patches/Xresources.diff | 95 +++++++++++++++++++++++++++
 srcpkgs/herbe/template                | 17 +++++
 2 files changed, 112 insertions(+)
 create mode 100644 srcpkgs/herbe/patches/Xresources.diff
 create mode 100644 srcpkgs/herbe/template

diff --git a/srcpkgs/herbe/patches/Xresources.diff b/srcpkgs/herbe/patches/Xresources.diff
new file mode 100644
index 00000000000..2c9e9b1c5da
--- /dev/null
+++ b/srcpkgs/herbe/patches/Xresources.diff
@@ -0,0 +1,95 @@
+diff --git a/config.def.h b/config.def.h
+index 86b7e76..d545925 100644
+--- a/config.def.h
++++ b/config.def.h
+@@ -2,18 +2,18 @@ static const char *background_color = "#3e3e3e";
+ static const char *border_color = "#ececec";
+ static const char *font_color = "#ececec";
+ static const char *font_pattern = "monospace:size=10";
+-static const unsigned line_spacing = 5;
+-static const unsigned int padding = 15;
++static unsigned line_spacing = 5;
++static unsigned int padding = 15;
+ 
+-static const unsigned int width = 450;
+-static const unsigned int border_size = 2;
+-static const unsigned int pos_x = 30;
+-static const unsigned int pos_y = 60;
++static unsigned int width = 450;
++static unsigned int border_size = 2;
++static unsigned int pos_x = 30;
++static unsigned int pos_y = 60;
+ 
+ enum corners { TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT };
+ enum corners corner = TOP_RIGHT;
+ 
+-static const unsigned int duration = 5; /* in seconds */
++static unsigned int duration = 5; /* in seconds */
+ 
+ #define DISMISS_BUTTON Button1
+ #define ACTION_BUTTON Button3
+diff --git a/herbe.c b/herbe.c
+index 51d3990..574e967 100644
+--- a/herbe.c
++++ b/herbe.c
+@@ -1,5 +1,6 @@
+ #include <X11/Xlib.h>
+ #include <X11/Xft/Xft.h>
++#include <X11/Xresource.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <signal.h>
+@@ -15,6 +16,13 @@
+ #define EXIT_FAIL 1
+ #define EXIT_DISMISS 2
+ 
++#define XRES_STR(name)                                        \
++	if (XrmGetResource(db, "herbe." #name, "*", &type, &val)) \
++	name = val.addr
++#define XRES_INT(name)                                        \
++	if (XrmGetResource(db, "herbe." #name, "*", &type, &val)) \
++	name = strtoul(val.addr, 0, 10)
++
+ Display *display;
+ Window window;
+ int exit_code = EXIT_DISMISS;
+@@ -107,6 +115,28 @@ int main(int argc, char *argv[])
+ 	if (!(display = XOpenDisplay(0)))
+ 		die("Cannot open display");
+ 
++	XrmInitialize();
++
++	char *res_man = XResourceManagerString(display);
++	XrmDatabase db = XrmGetStringDatabase(res_man);
++
++	char *type;
++	XrmValue val;
++
++	XRES_STR(background_color);
++	XRES_STR(border_color);
++	XRES_STR(font_color);
++	XRES_STR(font_pattern);
++
++	XRES_INT(line_spacing);
++	XRES_INT(padding);
++	XRES_INT(width);
++	XRES_INT(border_size);
++	XRES_INT(pos_x);
++	XRES_INT(pos_y);
++	XRES_INT(corner);
++	XRES_INT(duration);
++
+ 	int screen = DefaultScreen(display);
+ 	Visual *visual = DefaultVisual(display, screen);
+ 	Colormap colormap = DefaultColormap(display, screen);
+@@ -214,7 +244,8 @@ int main(int argc, char *argv[])
+ 	XftDrawDestroy(draw);
+ 	XftColorFree(display, visual, colormap, &color);
+ 	XftFontClose(display, font);
++	XrmDestroyDatabase(db);
+ 	XCloseDisplay(display);
+ 
+ 	return exit_code;
+-}
+\ No newline at end of file
++}
diff --git a/srcpkgs/herbe/template b/srcpkgs/herbe/template
new file mode 100644
index 00000000000..de2bf34a198
--- /dev/null
+++ b/srcpkgs/herbe/template
@@ -0,0 +1,17 @@
+# Template file for 'herbe'
+pkgname=herbe
+version=1.0.0
+revision=1
+build_style=gnu-makefile
+makedepends="libXft-devel"
+short_desc="Daemon-less notifications without D-Bus. Minimal and lightweight"
+maintainer="tuxliban <tenshalito@gmail.com>"
+license="MIT"
+homepage="https://github.com/dudik/herbe"
+distfiles="${homepage}/archive/${version}.tar.gz"
+checksum=78e454159050c86e030fb5a6cf997ac914345210cdf5a4ca4d7600c5296b7f76
+patch_args="-Np1"
+
+do_build() {
+	export CFLAGS=${CFLAGS}
+}

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-28 11:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-28 10:53 [PR PATCH] New package: herbe-1.0.0 biopsin
2021-04-28 11:51 ` [PR PATCH] [Merged]: " ericonr
  -- strict thread matches above, loose matches on Subject: below --
2020-12-16 10:14 [PR PATCH] " tuxliban

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).