From: dkwo <dkwo@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: zig: update to 0.12.0.
Date: Mon, 20 May 2024 20:30:20 +0200 [thread overview]
Message-ID: <20240520183021.40E8021391@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-49935@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 2281 bytes --]
New comment by dkwo on void-packages repository
https://github.com/void-linux/void-packages/pull/49935#issuecomment-2120983855
Comment:
New river and waylock are now out, which makes this PR viable.
However, the build style probably needs upgrading to use zig package manager, see e.g. https://codeberg.org/river/river/src/branch/master/PACKAGING.md
This works for me on x86_64 with static zig 0.12, but it probably needs some refinement to be included in void's build style:
```
# Template file for 'river'
pkgname=river
-version=0.2.4
-revision=3
+version=0.3.2
+revision=1
archs="~i686* ~armv6l* ~armv7l*"
build_style=zig-build
-configure_args="$(vopt_if xwayland -Dxwayland) -Dpie"
-hostmakedepends="pkg-config wayland-devel scdoc"
-makedepends="wlroots0.16-devel libevdev-devel pixman-devel
+hostmakedepends="pkg-config wayland-devel scdoc zig"
+makedepends="wlroots0.17-devel libevdev-devel pixman-devel
wayland-protocols libxkbcommon-devel wayland-devel"
-depends="$(vopt_if xwayland xorg-server-xwayland)"
+depends="xorg-server-xwayland"
short_desc="Dynamic tiling Wayland compositor"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-only"
homepage="https://codeberg.org/river/river"
distfiles="https://codeberg.org/river/river/releases/download/v${version}/river-${version}.tar.gz"
-checksum=26c1c41a65ce3804069afad6988410515cf478d2b76303ebc699766d3d4dc69f
+checksum=acb273487eb0cf9222c14e050c0faad692f426dba599b62e4c743ba43328ee9e
+_deps="https://codeberg.org/ifreund/zig-pixman/archive/v0.1.0.tar.gz
+ https://codeberg.org/ifreund/zig-wayland/archive/v0.1.0.tar.gz
+ https://codeberg.org/ifreund/zig-wlroots/archive/v0.17.0.tar.gz
+ https://codeberg.org/ifreund/zig-xkbcommon/archive/v0.1.0.tar.gz"
-build_options="xwayland"
-build_options_default="xwayland"
-desc_option_xwayland="Enable Xwayland support"
+post_fetch() {
+ for _d in $_deps; do
+ zig fetch --global-cache-dir $XBPS_BUILDDIR/zig-input $_d
+ done
+}
+
+do_build() {
+ DESTDIR="zig-out" zig build --system $XBPS_BUILDDIR/zig-input/p -Doptimize=ReleaseSafe -Dpie -Dxwayland --prefix /usr -Dcpu=baseline install
+}
+
+do_check() {
+ zig build --system $XBPS_BUILDDIR/zig-input/p test
+}
```
next prev parent reply other threads:[~2024-05-20 18:30 UTC|newest]
Thread overview: 69+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-20 16:14 [PR PATCH] " OliveThePuffin
2024-04-20 16:16 ` [PR PATCH] [Updated] " OliveThePuffin
2024-04-20 16:25 ` OliveThePuffin
2024-04-20 16:27 ` OliveThePuffin
2024-04-20 16:34 ` [PR REVIEW] " OliveThePuffin
2024-04-20 18:23 ` dkwo
2024-04-20 23:54 ` OliveThePuffin
2024-04-21 8:21 ` icp1994
2024-04-21 15:59 ` OliveThePuffin
2024-04-21 19:13 ` tranzystorekk
2024-04-22 2:39 ` OliveThePuffin
2024-05-03 12:41 ` realcharmer
2024-05-03 16:48 ` OliveThePuffin
2024-05-03 16:50 ` OliveThePuffin
2024-05-03 19:10 ` [PR PATCH] [Updated] " OliveThePuffin
2024-05-05 17:35 ` Luciogi
2024-05-07 15:05 ` [PR PATCH] [Closed]: " OliveThePuffin
2024-05-07 15:05 ` [PR PATCH] [Updated] " OliveThePuffin
2024-05-07 15:11 ` OliveThePuffin
2024-05-07 15:48 ` OliveThePuffin
2024-05-07 16:00 ` tranzystorekk
2024-05-20 18:30 ` dkwo [this message]
2024-05-20 18:32 ` dkwo
2024-05-20 18:42 ` dkwo
2024-05-20 18:44 ` tranzystorekk
2024-05-20 18:46 ` dkwo
2024-05-20 20:14 ` tranzystorekk
2024-05-20 22:04 ` realcharmer
2024-05-22 2:23 ` jason1987d
2024-05-23 0:36 ` [PR PATCH] [Updated] " OliveThePuffin
2024-05-23 0:43 ` OliveThePuffin
2024-05-23 0:52 ` [PR PATCH] [Updated] " OliveThePuffin
2024-05-23 0:53 ` OliveThePuffin
2024-05-23 1:20 ` OliveThePuffin
2024-05-23 7:34 ` tranzystorekk
2024-05-23 7:36 ` tranzystorekk
2024-05-23 7:48 ` tranzystorekk
2024-05-23 8:48 ` tranzystorekk
2024-05-23 11:13 ` OutOfContainment
2024-05-23 13:26 ` dkwo
2024-05-25 14:56 ` icp1994
2024-05-25 16:10 ` tranzystorekk
2024-05-25 18:23 ` tranzystorekk
2024-06-12 1:21 ` [PR PATCH] [Closed]: " OliveThePuffin
2024-06-12 1:21 ` [PR PATCH] [Updated] " OliveThePuffin
2024-06-12 2:08 ` OliveThePuffin
2024-06-12 2:11 ` OliveThePuffin
2024-06-12 2:12 ` OliveThePuffin
2024-06-12 2:44 ` OliveThePuffin
2024-06-12 3:05 ` Luciogi
2024-06-12 6:48 ` tranzystorekk
2024-06-12 22:35 ` [PR PATCH] [Updated] " OliveThePuffin
2024-06-12 22:59 ` OliveThePuffin
2024-06-12 23:25 ` [PR PATCH] [Updated] zig: update to 0.12.1 OliveThePuffin
2024-06-13 0:15 ` OliveThePuffin
2024-06-13 0:39 ` OliveThePuffin
2024-06-13 0:42 ` OliveThePuffin
2024-06-13 0:52 ` OliveThePuffin
2024-06-13 6:04 ` tranzystorekk
2024-06-13 7:08 ` tranzystorekk
2024-06-13 7:14 ` dataCobra
2024-06-13 7:16 ` dataCobra
2024-06-13 7:18 ` tranzystorekk
2024-06-14 0:47 ` [PR PATCH] [Updated] " OliveThePuffin
2024-06-14 0:48 ` OliveThePuffin
2024-06-20 6:25 ` OutOfContainment
2024-06-20 6:31 ` tranzystorekk
2024-06-20 9:10 ` OliveThePuffin
2024-06-20 9:12 ` tranzystorekk
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=20240520183021.40E8021391@inbox.vuxu.org \
--to=dkwo@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).