From 0b9428b826a4092fb72c7d044ef0a4673e98d5ec Mon Sep 17 00:00:00 2001 From: Petr Cizmar Date: Tue, 10 Jan 2023 14:30:16 +0100 Subject: [PATCH] New package: nostr-rs-relay --- srcpkgs/nostr-rs-relay/patches/cargo.toml.patch | 12 ++++++++++++ srcpkgs/nostr-rs-relay/template | 17 +++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 srcpkgs/nostr-rs-relay/patches/cargo.toml.patch create mode 100644 srcpkgs/nostr-rs-relay/template diff --git a/srcpkgs/nostr-rs-relay/patches/cargo.toml.patch b/srcpkgs/nostr-rs-relay/patches/cargo.toml.patch new file mode 100644 index 000000000000..7d04e862e26d --- /dev/null +++ b/srcpkgs/nostr-rs-relay/patches/cargo.toml.patch @@ -0,0 +1,12 @@ +diff --git a/Cargo.toml b/Cargo.toml +index 932db4c..59835fd 100644 +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -41,6 +41,7 @@ parse_duration = "2" + rand = "0.8" + const_format = "0.2.28" + regex = "1" ++openssl = { version = "0.10", features = ["vendored"] } + + [dev-dependencies] + anyhow = "1" diff --git a/srcpkgs/nostr-rs-relay/template b/srcpkgs/nostr-rs-relay/template new file mode 100644 index 000000000000..b1363c346f69 --- /dev/null +++ b/srcpkgs/nostr-rs-relay/template @@ -0,0 +1,17 @@ +# Template file for 'nostr-rs-relay' +pkgname=nostr-rs-relay +version=0.7.16 +revision=1 +build_style=cargo +hostmakedepends="pkg-config" +makedepends="openssl-devel" +short_desc="Nostr relay written in Rust" +maintainer="Petr Cizmar " +license="MIT" +homepage="https://git.sr.ht/~gheartsfield/nostr-rs-relay" +changelog="https://git.sr.ht/~gheartsfield/nostr-rs-relay/log/${version}" +distfiles="https://git.sr.ht/~gheartsfield/nostr-rs-relay/archive/${version}.tar.gz" +checksum=82adb7d54bc748214d00b8212aab79cd1adec6f576249166a41916545683a724 +post_install() { + vlicense "LICENSE" +}