Github messages for voidlinux
 help / color / mirror / Atom feed
From: obosob <obosob@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: warpd 1.3.5
Date: Thu, 02 Feb 2023 14:48:05 +0100	[thread overview]
Message-ID: <20230202134805.r0VUoXnHwtOAuSEHNEAm750fZ52gsp6QHLF-rNJ7FQE@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-42032@inbox.vuxu.org>

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

There is an updated pull request by obosob against master on the void-packages repository

https://github.com/obosob/void-packages warpd
https://github.com/void-linux/void-packages/pull/42032

New package: warpd 1.3.5
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**


<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


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

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

From eb50f8f88dfad9642b8dda1549d55ce0b9b434af Mon Sep 17 00:00:00 2001
From: obosob <obosob@riseup.net>
Date: Thu, 2 Feb 2023 12:32:40 +0000
Subject: [PATCH] New package: warpd 1.3.5

---
 srcpkgs/warpd/patches/makefile.patch | 74 ++++++++++++++++++++++++++++
 srcpkgs/warpd/template               | 27 ++++++++++
 2 files changed, 101 insertions(+)
 create mode 100644 srcpkgs/warpd/patches/makefile.patch
 create mode 100644 srcpkgs/warpd/template

diff --git a/srcpkgs/warpd/patches/makefile.patch b/srcpkgs/warpd/patches/makefile.patch
new file mode 100644
index 000000000000..fb49861e69e9
--- /dev/null
+++ b/srcpkgs/warpd/patches/makefile.patch
@@ -0,0 +1,74 @@
+diff --git a/Makefile b/Makefile
+index 064ac65..891f791 100644
+--- a/Makefile
++++ b/Makefile
+@@ -11,7 +11,9 @@ ifeq ($(PLATFORM), macos)
+ endif
+ 
+ %.o: %.c Makefile mk/*.mk
+-	$(CC) -c $< -o $@ $(CFLAGS)
++	$(CC) -c $< -o $@ $(DEFS) $(INCLUDES) $(CFLAGS)
++
++DEFS=-DVERSION='"v$(VERSION)$(COMMITSTR)"'
+ 
+ CFLAGS:=-g\
+        -Wall\
+@@ -20,7 +22,6 @@ CFLAGS:=-g\
+        -Wno-deprecated-declarations\
+        -Wno-unused-parameter\
+        -std=c99\
+-       -DVERSION='"v$(VERSION)$(COMMITSTR)"'\
+        -D_DEFAULT_SOURCE \
+        -D_FORTIFY_SOURCE=2  $(CFLAGS)
+ 
+diff --git a/mk/linux.mk b/mk/linux.mk
+index bdfc558..4c91817 100644
+--- a/mk/linux.mk
++++ b/mk/linux.mk
+@@ -1,25 +1,29 @@
+ CFILES=$(shell find src/platform/linux/*.c src/*.c)
++LIBS=
+ 
+ ifndef DISABLE_WAYLAND
+-	CFLAGS+=-lwayland-client\
++	LIBS+=-lwayland-client\
+ 		-lxkbcommon\
+ 		-lcairo\
+ 		-lrt\
+-		-DWARPD_WAYLAND=1
++
++	DEFS+=-DWARPD_WAYLAND=1
+ 
+ 	CFILES+=$(shell find src/platform/linux/wayland/ -name '*.c')
+ endif
+ 
+ ifndef DISABLE_X
+-	CFLAGS+=-I/usr/include/freetype2/\
+-		-lXfixes\
++  INCLUDES+=-I/usr/include/freetype2
++
++	LIBS+=-lXfixes\
+ 		-lXext\
+ 		-lXinerama\
+ 		-lXi\
+ 		-lXtst\
+ 		-lX11\
+-		-lXft\
+-		-DWARPD_X=1
++		-lXft
++
++	DEFS+=-DWARPD_X=1
+ 
+ 	CFILES+=$(shell find src/platform/linux/X/*.c)
+ endif
+@@ -27,8 +31,8 @@ endif
+ OBJECTS=$(CFILES:.c=.o)
+ 
+ all: $(OBJECTS)
+-	-mkdir bin
+-	$(CC)  -o bin/warpd $(OBJECTS) $(CFLAGS)
++	-mkdir -p bin
++	$(CC) -o bin/warpd $(OBJECTS) $(CFLAGS) $(LDFLAGS) $(LIBS)
+ clean:
+ 	-rm $(OBJECTS)
+ 	-rm -r bin
diff --git a/srcpkgs/warpd/template b/srcpkgs/warpd/template
new file mode 100644
index 000000000000..493c757cc02e
--- /dev/null
+++ b/srcpkgs/warpd/template
@@ -0,0 +1,27 @@
+# Template file for 'warpd'
+pkgname=warpd
+version=v1.3.5
+revision=1
+build_style=gnu-makefile
+make_build_args="$(vopt_if x11 "" "DISABLE_X=1") $(vopt_if wayland "" "DISABLE_WAYLAND=1")"
+makedepends="$(vopt_if x11 "libXi-devel libXinerama-devel libXft-devel libXfixes-devel libXtst-devel libX11-devel freetype-devel")
+$(vopt_if wayland "wayland-devel cairo-devel libxkbcommon-devel")"
+depends="$(vopt_if x11 "libXi libXinerama libXft libXfixes libXtst libX11 freetype")
+$(vopt_if wayland "wayland cairo libxkbcommon")"
+short_desc="Modal keyboard-driven virtual pointer"
+maintainer="obosob <obosob@riseup.net>"
+license="MIT"
+homepage="https://github.com/rvaiya/warpd"
+changelog="https://raw.githubusercontent.com/rvaiya/warpd/master/CHANGELOG.md"
+distfiles="https://github.com/rvaiya/warpd/archive/refs/tags/${version}.tar.gz"
+checksum=708f551c7a3637319cca320a2849c334a69a7294c3bf268a3b2fbd5de6d980af
+
+build_options="x11 wayland"
+build_options_default="$build_options"
+
+desc_option_x11="Enable support for X"
+desc_option_wayland="Enable support for Wayland"
+
+post_install() {
+	vlicense LICENSE
+}

  parent reply	other threads:[~2023-02-02 13:48 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-02 12:56 [PR PATCH] " obosob
2023-02-02 13:18 ` [PR PATCH] [Updated] " obosob
2023-02-02 13:48 ` obosob [this message]
2023-02-02 14:42 ` obosob
2023-05-06  1:49 ` github-actions
2023-05-20  1:51 ` [PR PATCH] [Closed]: " github-actions
2024-02-03 15:12 ` IcedQuinn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230202134805.r0VUoXnHwtOAuSEHNEAm750fZ52gsp6QHLF-rNJ7FQE@z \
    --to=obosob@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).