Github messages for voidlinux
 help / color / mirror / Atom feed
* Re: New package: xseticon-0.1
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-19285@inbox.vuxu.org>
@ 2020-02-19  3:31 ` sgn
  2020-02-19  3:32 ` sgn
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: sgn @ 2020-02-19  3:31 UTC (permalink / raw)
  To: ml

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

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/pull/19285#issuecomment-588017851

Comment:
This is what I come up with:
```diff
From 24764b2b3967a2b11be9f8c5324f8a51893e00d7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Wed, 19 Feb 2020 10:29:46 +0700
Subject: [PATCH] New package: xseticon-0.1
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
---
 srcpkgs/xseticon/patches/makefile.patch | 35 +++++++++++++++++++++++++
 srcpkgs/xseticon/template               | 15 +++++++++++
 2 files changed, 50 insertions(+)
 create mode 100644 srcpkgs/xseticon/patches/makefile.patch
 create mode 100644 srcpkgs/xseticon/template

diff --git a/srcpkgs/xseticon/patches/makefile.patch b/srcpkgs/xseticon/patches/makefile.patch
new file mode 100644
index 0000000000..744602136d
--- /dev/null
+++ b/srcpkgs/xseticon/patches/makefile.patch
@@ -0,0 +1,35 @@
+diff --git Makefile Makefile
+index 725f750..17a47c0 100644
+--- Makefile
++++ Makefile
+@@ -9,22 +9,22 @@ GD_LIBS=-lgd
+ 
+ LIBS=${GLIB_LIBS} ${XLIB_LIBS} ${GD_LIBS}
+ 
++CFLAGS += $(GLIB_CFLAGS)
++CFLAGS += $(XLIB_CFLAGS)
++LDFLAGS := $(LIBS) $(LDFLAGS)
++
++INSTALL = install
++
+ PREFIX=/usr/local
+ BINDIR=$(PREFIX)/bin
+ 
+ all: xseticon
+ 
+-xseticon.o: xseticon.c
+-	gcc ${GLIB_CFLAGS} ${XLIB_CFLAGS} -c $^ -o $@
+-
+-xseticon: xseticon.o
+-	gcc ${LIBS} $^ -o $@
+-
+ .PHONY: clean
+ clean:
+ 	rm -f xseticon.o xseticon
+ 
+ .PHONY: install
+ install: xseticon
+-	install -d $(BINDIR)
+-	install -m 755 xseticon $(BINDIR)
++	$(INSTALL) -d $(DESTDIR)$(BINDIR)
++	$(INSTALL) -m 755 xseticon $(DESTDIR)$(BINDIR)
diff --git a/srcpkgs/xseticon/template b/srcpkgs/xseticon/template
new file mode 100644
index 0000000000..ee231eb895
--- /dev/null
+++ b/srcpkgs/xseticon/template
@@ -0,0 +1,15 @@
+# Template file for 'xseticon'
+pkgname=xseticon
+version=0.1+bzr13
+revision=1
+wrksrc="xseticon-0.1-bzr13"
+build_style=gnu-makefile
+hostmakedepends="pkg-config"
+makedepends="libXmu-devel gd-devel glib-devel"
+make_use_env=yes
+short_desc="Set the X11 window icon for any given window"
+maintainer="Benjamin Slade <slade@lambda-y.net>"
+license="GPL-2.0-or-later"
+homepage="https://github.com/xeyownt/xseticon"
+distfiles="https://github.com/xeyownt/xseticon/archive/${version}.tar.gz"
+checksum=d34c349ff09ea42393fb3bac3fd2be0e7b9a244388e2f4b32cc92636967a4a2c
-- 
2.25.1.497.g3043dbfab8

```

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

* Re: New package: xseticon-0.1
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-19285@inbox.vuxu.org>
  2020-02-19  3:31 ` New package: xseticon-0.1 sgn
@ 2020-02-19  3:32 ` sgn
  2020-02-19 17:47 ` emacsomancer
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 5+ messages in thread
From: sgn @ 2020-02-19  3:32 UTC (permalink / raw)
  To: ml

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

New comment by sgn on void-packages repository

https://github.com/void-linux/void-packages/pull/19285#issuecomment-588017851

Comment:
This is what I come up with, for web rendering: https://github.com/sgn/void-packages/commit/24764b2b3967a2b11be9f8c5324f8a51893e00d7:
```diff
From 24764b2b3967a2b11be9f8c5324f8a51893e00d7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?=
 <congdanhqx@gmail.com>
Date: Wed, 19 Feb 2020 10:29:46 +0700
Subject: [PATCH] New package: xseticon-0.1
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
---
 srcpkgs/xseticon/patches/makefile.patch | 35 +++++++++++++++++++++++++
 srcpkgs/xseticon/template               | 15 +++++++++++
 2 files changed, 50 insertions(+)
 create mode 100644 srcpkgs/xseticon/patches/makefile.patch
 create mode 100644 srcpkgs/xseticon/template

diff --git a/srcpkgs/xseticon/patches/makefile.patch b/srcpkgs/xseticon/patches/makefile.patch
new file mode 100644
index 0000000000..744602136d
--- /dev/null
+++ b/srcpkgs/xseticon/patches/makefile.patch
@@ -0,0 +1,35 @@
+diff --git Makefile Makefile
+index 725f750..17a47c0 100644
+--- Makefile
++++ Makefile
+@@ -9,22 +9,22 @@ GD_LIBS=-lgd
+ 
+ LIBS=${GLIB_LIBS} ${XLIB_LIBS} ${GD_LIBS}
+ 
++CFLAGS += $(GLIB_CFLAGS)
++CFLAGS += $(XLIB_CFLAGS)
++LDFLAGS := $(LIBS) $(LDFLAGS)
++
++INSTALL = install
++
+ PREFIX=/usr/local
+ BINDIR=$(PREFIX)/bin
+ 
+ all: xseticon
+ 
+-xseticon.o: xseticon.c
+-	gcc ${GLIB_CFLAGS} ${XLIB_CFLAGS} -c $^ -o $@
+-
+-xseticon: xseticon.o
+-	gcc ${LIBS} $^ -o $@
+-
+ .PHONY: clean
+ clean:
+ 	rm -f xseticon.o xseticon
+ 
+ .PHONY: install
+ install: xseticon
+-	install -d $(BINDIR)
+-	install -m 755 xseticon $(BINDIR)
++	$(INSTALL) -d $(DESTDIR)$(BINDIR)
++	$(INSTALL) -m 755 xseticon $(DESTDIR)$(BINDIR)
diff --git a/srcpkgs/xseticon/template b/srcpkgs/xseticon/template
new file mode 100644
index 0000000000..ee231eb895
--- /dev/null
+++ b/srcpkgs/xseticon/template
@@ -0,0 +1,15 @@
+# Template file for 'xseticon'
+pkgname=xseticon
+version=0.1+bzr13
+revision=1
+wrksrc="xseticon-0.1-bzr13"
+build_style=gnu-makefile
+hostmakedepends="pkg-config"
+makedepends="libXmu-devel gd-devel glib-devel"
+make_use_env=yes
+short_desc="Set the X11 window icon for any given window"
+maintainer="Benjamin Slade <slade@lambda-y.net>"
+license="GPL-2.0-or-later"
+homepage="https://github.com/xeyownt/xseticon"
+distfiles="https://github.com/xeyownt/xseticon/archive/${version}.tar.gz"
+checksum=d34c349ff09ea42393fb3bac3fd2be0e7b9a244388e2f4b32cc92636967a4a2c
-- 
2.25.1.497.g3043dbfab8

```

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

* Re: New package: xseticon-0.1
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-19285@inbox.vuxu.org>
  2020-02-19  3:31 ` New package: xseticon-0.1 sgn
  2020-02-19  3:32 ` sgn
@ 2020-02-19 17:47 ` emacsomancer
  2020-02-19 17:54 ` emacsomancer
  2020-02-25 13:27 ` [PR PATCH] [Merged]: " xtraeme
  4 siblings, 0 replies; 5+ messages in thread
From: emacsomancer @ 2020-02-19 17:47 UTC (permalink / raw)
  To: ml

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

New comment by emacsomancer on void-packages repository

https://github.com/void-linux/void-packages/pull/19285#issuecomment-588352183

Comment:
@sgn: with those modifications, I can't build it locally:

```
......
cc -fstack-clash-protection -D_FORTIFY_SOURCE=2 -mtune=generic -O2 -pipe        -Wl,-z,relro -Wl,-z,now -Wl,--as-needed      xseticon.c   -o xseticon
xseticon.c:23:10: fatal error: glib.h: No such file or directory
   23 | #include <glib.h>
      |          ^~~~~~~~
compilation terminated.
make: *** [<builtin>: xseticon] Error 1
=> ERROR: xseticon-0.1+bzr13_1: do_build: '${make_cmd} CC="$CC" CXX="$CXX" LD="$LD" AR="$AR" RANLIB="$RANLIB" CPP="$CPP" AS="$AS" OBJDUMP="$OBJDUMP" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" ${makejobs} ${make_build_args} ${make_build_target}' exited with 2
=> ERROR:   in do_build() at common/build-style/gnu-makefile.sh:9
```

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

* Re: New package: xseticon-0.1
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-19285@inbox.vuxu.org>
                   ` (2 preceding siblings ...)
  2020-02-19 17:47 ` emacsomancer
@ 2020-02-19 17:54 ` emacsomancer
  2020-02-25 13:27 ` [PR PATCH] [Merged]: " xtraeme
  4 siblings, 0 replies; 5+ messages in thread
From: emacsomancer @ 2020-02-19 17:54 UTC (permalink / raw)
  To: ml

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

New comment by emacsomancer on void-packages repository

https://github.com/void-linux/void-packages/pull/19285#issuecomment-588352183

Comment:
@sgn: ~~with those modifications, I can't build it locally:~~

```
......
cc -fstack-clash-protection -D_FORTIFY_SOURCE=2 -mtune=generic -O2 -pipe        -Wl,-z,relro -Wl,-z,now -Wl,--as-needed      xseticon.c   -o xseticon
xseticon.c:23:10: fatal error: glib.h: No such file or directory
   23 | #include <glib.h>
      |          ^~~~~~~~
compilation terminated.
make: *** [<builtin>: xseticon] Error 1
=> ERROR: xseticon-0.1+bzr13_1: do_build: '${make_cmd} CC="$CC" CXX="$CXX" LD="$LD" AR="$AR" RANLIB="$RANLIB" CPP="$CPP" AS="$AS" OBJDUMP="$OBJDUMP" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" ${makejobs} ${make_build_args} ${make_build_target}' exited with 2
=> ERROR:   in do_build() at common/build-style/gnu-makefile.sh:9
```

**Edit:** Nevermind, I was missing `make_use_env=yes`.

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

* Re: [PR PATCH] [Merged]: New package: xseticon-0.1
       [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-19285@inbox.vuxu.org>
                   ` (3 preceding siblings ...)
  2020-02-19 17:54 ` emacsomancer
@ 2020-02-25 13:27 ` xtraeme
  4 siblings, 0 replies; 5+ messages in thread
From: xtraeme @ 2020-02-25 13:27 UTC (permalink / raw)
  To: ml

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

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

New package: xseticon-0.1
https://github.com/void-linux/void-packages/pull/19285

Description:


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

end of thread, other threads:[~2020-02-25 13:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-19285@inbox.vuxu.org>
2020-02-19  3:31 ` New package: xseticon-0.1 sgn
2020-02-19  3:32 ` sgn
2020-02-19 17:47 ` emacsomancer
2020-02-19 17:54 ` emacsomancer
2020-02-25 13:27 ` [PR PATCH] [Merged]: " xtraeme

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).