From a41d6b03910662ee660a5cb17ed8e5774fb59a35 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 --- srcpkgs/gurk/patches/fix-segfault.patch | 20 ++++++++++++++++++++ srcpkgs/gurk/template | 19 +++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 srcpkgs/gurk/patches/fix-segfault.patch create mode 100644 srcpkgs/gurk/template diff --git a/srcpkgs/gurk/patches/fix-segfault.patch b/srcpkgs/gurk/patches/fix-segfault.patch new file mode 100644 index 000000000000..60d29e9433af --- /dev/null +++ b/srcpkgs/gurk/patches/fix-segfault.patch @@ -0,0 +1,20 @@ +diff -ruN a/.cargo/config.toml b/.cargo/config.toml +--- a/.cargo/config.toml 2022-08-04 13:19:26.079217731 -0600 ++++ b/.cargo/config.toml 2022-08-04 13:19:50.099215011 -0600 +@@ -9,8 +9,8 @@ + linker = "aarch64-linux-gnu-gcc" + +# I have not tested this, as I have no aarch64 devices and could not get any +# emulators to work, but this flag causes `rustc` to use system libraries / +# object files, which I think is desirable. I would appreciate someone letting +# me know if this causes errors on run. + [target.aarch64-unknown-linux-musl] +-rustflags = ["-Clink-self-contained=yes"] ++rustflags = ["-Clink-self-contained=no"] + linker = "rust-lld" + +# Without this, check stage fails with a SIGSEGV. This workaround is from +# . + [target.x86_64-unknown-linux-musl] +-rustflags = ["-Clink-self-contained=yes"] ++rustflags = ["-Clink-self-contained=no"] 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 +}