From 7249fd7b7144b41bc7f4731de75e23eb237696b1 Mon Sep 17 00:00:00 2001 From: Maeve Sproule Date: Sun, 31 Jul 2022 15:04:58 -0600 Subject: [PATCH] New package: gurk-0.2.4 --- .../patches/fix-x86_64-musl-segfault.patch | 16 ++++++++++++++++ srcpkgs/gurk/template | 19 +++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 srcpkgs/gurk/patches/fix-x86_64-musl-segfault.patch create mode 100644 srcpkgs/gurk/template diff --git a/srcpkgs/gurk/patches/fix-x86_64-musl-segfault.patch b/srcpkgs/gurk/patches/fix-x86_64-musl-segfault.patch new file mode 100644 index 000000000000..8fc2de582b8b --- /dev/null +++ b/srcpkgs/gurk/patches/fix-x86_64-musl-segfault.patch @@ -0,0 +1,16 @@ +diff -ruN a/.cargo/config.toml b/.cargo/config.toml +--- a/.cargo/config.toml 2022-06-16 01:53:04.000000000 -0600 ++++ b/.cargo/config.toml 2022-08-03 20:38:45.059841310 -0600 +@@ -13,4 +13,4 @@ + linker = "rust-lld" + +# Without this, check stage fails with a SIGSEGV. Honestly, I can't test this +# on my own computer (since it only occurs on this one target, which I don't +# have on any of my systems), so this is currently a guess as to what the +# problem is. But given that this doesn't occur on armv7l-musl, this makes the +# most sense. If this doesn't work, I'm gonna have to create a x86_64-musl +# partition to figure this out. +# This workaround is from . + [target.x86_64-unknown-linux-musl] +-rustflags = ["-Clink-self-contained=yes"] ++rustflags = ["-Clink-self-contained=yes", "-Ctarget-feature=-crt-static"] diff --git a/srcpkgs/gurk/template b/srcpkgs/gurk/template new file mode 100644 index 000000000000..1fa113085665 --- /dev/null +++ b/srcpkgs/gurk/template @@ -0,0 +1,19 @@ +# Template file for 'gurk' +pkgname=gurk +version=0.2.4 +revision=1 +archs="x86_64* i686* armv[67]* aarch64*" # depends (indirectly) on ring +wrksrc="gurk-rs-${version}" +build_style=cargo +hostmakedepends="clang llvm protobuf" +short_desc="Signal Messenger client for terminal" +maintainer="Maeve Sproule " +license="AGPL-3.0-only" +homepage="https://github.com/boxdot/gurk-rs" +changelog="https://raw.githubusercontent.com/boxdot/gurk-rs/master/CHANGELOG.md" +distfiles="https://github.com/boxdot/gurk-rs/archive/refs/tags/v${version}.tar.gz" +checksum=fca42ea73a37514b17d7471cefe71233994dfa2d44da487358b3130dcd4780ca + +post_install() { + vlicense LICENSE-AGPL-3.0 +}