community/aercbook: rebuild with zig 0.13

This commit is contained in:
lauren n. liberda 2024-06-08 02:34:04 +02:00
parent 63a6d955dc
commit e9ee6e23b6
No known key found for this signature in database
GPG Key ID: 1613DD32FE28C3EA
3 changed files with 58 additions and 1 deletions

View File

@ -0,0 +1,31 @@
From d731a9d7511f5cbdb9e2228dda992b396557bc61 Mon Sep 17 00:00:00 2001
From: "lauren n. liberda" <lauren@selfisekai.rocks>
Date: Sat, 8 Jun 2024 02:27:53 +0200
Subject: [PATCH] zig 0.13: use std.Build.path
---
build.zig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/build.zig b/build.zig
index fe1f95e..38560b5 100644
--- a/build.zig
+++ b/build.zig
@@ -32,7 +32,7 @@ pub fn build(b: *std.Build) void {
const exe = b.addExecutable(.{
.name = "aercbook",
- .root_source_file = .{ .path = "src/main.zig" },
+ .root_source_file = b.path("src/main.zig"),
.target = target,
.optimize = optimize,
});
@@ -50,7 +50,7 @@ pub fn build(b: *std.Build) void {
// Creates a step for unit testing. This only builds the test executable
// but does not run it.
const unit_tests = b.addTest(.{
- .root_source_file = .{ .path = "src/email_iterator.zig" },
+ .root_source_file = b.path("src/email_iterator.zig"),
.target = target,
.optimize = optimize,
});

View File

@ -0,0 +1,22 @@
From fa4ed8b62c5a904da70ff0b43f95a7eb3e4588ad Mon Sep 17 00:00:00 2001
From: "lauren n. liberda" <lauren@selfisekai.rocks>
Date: Sat, 8 Jun 2024 02:29:05 +0200
Subject: [PATCH] zig 0.13: std.ChildProcess -> std.process.Child
---
src/gitversiontag.zig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gitversiontag.zig b/src/gitversiontag.zig
index 08480a7..0b0fa7c 100644
--- a/src/gitversiontag.zig
+++ b/src/gitversiontag.zig
@@ -6,7 +6,7 @@ pub fn gitVersionTag(a: std.mem.Allocator) []const u8 {
"--sort=-creatordate",
};
- if (std.ChildProcess.run(.{ .argv = args[0..], .allocator = a })) |ret| {
+ if (std.process.Child.run(.{ .argv = args[0..], .allocator = a })) |ret| {
var it = std.mem.split(u8, ret.stdout, "\n");
if (it.next()) |firstline| {
return firstline;

View File

@ -2,7 +2,7 @@
# Maintainer: Coco Liliace <coco@liliace.dev>
pkgname=aercbook
pkgver=0.1.5
pkgrel=0
pkgrel=1
pkgdesc="Minimalistic address book for aerc"
url="https://sr.ht/~renerocksai/aercbook/"
arch="aarch64 x86_64"
@ -12,6 +12,8 @@ options="!check" # no tests
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~renerocksai/aercbook/archive/v$pkgver.tar.gz
0001-zig-0.12-std.ChildProcess.exec-run.patch
0002-zig-0.12-convert-some-vars-to-consts.patch
0003-zig-0.13-use-std.Build.path.patch
0004-zig-0.13-std.ChildProcess-std.process.Child.patch
"
builddir="$srcdir/$pkgname-v$pkgver"
@ -32,4 +34,6 @@ sha512sums="
ffabe7017e5d15df2cf19fa7663b045a7e693acfd34d25a85aa22235ed1f02d5ea40cee2cd0ff9f35d0ad497aefcde5048097365b7037c06c95729cf29d46614 aercbook-0.1.5.tar.gz
d6c164144d7296df949d24a876ae45e72236efdc1c0997ffe079125ae13794e78c60ffcee3d6d9b33dc5d6021225da27a9e6ba2669d8d4b53939b977e4de1255 0001-zig-0.12-std.ChildProcess.exec-run.patch
81ed9206b6530fd072732bb9587a3a8ad2c89518203ce49bc225799a06a30548e3654a16cf63bb16db4a6afa1be1c8394317c0b003eaa95eb982fca604f1489c 0002-zig-0.12-convert-some-vars-to-consts.patch
b475cc5231a7cdb5d3bf1456d62772a194ca5e7742c8b6d56835d1033b6aca7807767f15640fde25a6d1ba69a1fef7c27ccc55a45a563d951f9ecc9bb0e994c6 0003-zig-0.13-use-std.Build.path.patch
2b5fbcc3649133a98957653e85f188e8a41c4f88d5d21d907c9659eafa1921fde629b77315fdb7de1c85fb2a6f0beed125339ad941fda9d0ebd673f9fca975ab 0004-zig-0.13-std.ChildProcess-std.process.Child.patch
"