From 517ac7f71a16b94ea60c48a5c0afab842d90b864 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Tue, 2 Jun 2020 22:40:18 +0200 Subject: [PATCH] New package: rumatui-0.1.18 --- .../patches/link-olm-dynamically.patch | 23 +++++++++++++++++++ srcpkgs/rumatui/template | 23 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 srcpkgs/rumatui/patches/link-olm-dynamically.patch create mode 100644 srcpkgs/rumatui/template diff --git a/srcpkgs/rumatui/patches/link-olm-dynamically.patch b/srcpkgs/rumatui/patches/link-olm-dynamically.patch new file mode 100644 index 00000000000..00f0fc28207 --- /dev/null +++ b/srcpkgs/rumatui/patches/link-olm-dynamically.patch @@ -0,0 +1,23 @@ +diff --git a/Cargo.lock b/Cargo.lock +--- Cargo.lock ++++ Cargo.lock +@@ -1454,8 +1454,7 @@ dependencies = [ + [[package]] + name = "olm-sys" + version = "0.1.5" +-source = "registry+https://github.com/rust-lang/crates.io-index" +-checksum = "7d77deffdae89bf5b2ff17a9c54fab4b3b92c5440e9e4645e8bb08d7c6ace8fc" ++source = "git+https://gitlab.gnome.org/BrainBlasted/olm-sys.git#b703eb8b3d55e573d745b8479697623cfba4fd1e" + + [[package]] + name = "once_cell" +diff --git a/Cargo.toml b/Cargo.toml +--- Cargo.toml ++++ Cargo.toml +@@ -63,3 +63,6 @@ features = ["parsing", "assets", "dump-load"] + + [workspace] + members = ["rumatui-tui"] ++ ++[patch.crates-io] ++olm-sys = { git = "https://gitlab.gnome.org/BrainBlasted/olm-sys.git", commit = "bd7068d09d172f188426c69b16f6537d895ebcfc" } diff --git a/srcpkgs/rumatui/template b/srcpkgs/rumatui/template new file mode 100644 index 00000000000..0fc77cd9a74 --- /dev/null +++ b/srcpkgs/rumatui/template @@ -0,0 +1,23 @@ +# Template file for 'rumatui' +pkgname=rumatui +version=0.1.18 +revision=1 +build_style=cargo +hostmakedepends="pkg-config" +makedepends="libressl-devel olm-devel" +short_desc="Terminal matrix client" +maintainer="Jan Christian Grünhage " +license="MIT, Apache-2.0" +homepage="https://github.com/DevinR528/rumatui" +distfiles="${homepage}/archive/${version}.tar.gz" +checksum=988634a6ff28c734f23caa7d6173fbd42cad086571777b7c7809f7e14c2dede5 +nocross="https://github.com/void-linux/void-packages/pull/22534#issuecomment-649333178" + +pre_build() { + export OLM_LINK_VARIANT=dylib +} + +post_install() { + vlicense LICENSE-APACHE.txt + vlicense LICENSE-MIT.txt +}