Github messages for voidlinux
 help / color / mirror / Atom feed
From: zen0bit <zen0bit@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: soft-serve-0.7.4
Date: Mon, 11 Mar 2024 02:26:46 +0100	[thread overview]
Message-ID: <20240311012646.D7835221EE@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-49215@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 663 bytes --]

There is an updated pull request by zen0bit against master on the void-packages repository

https://github.com/oSoWoSo/VUR soft-serve
https://github.com/void-linux/void-packages/pull/49215

New package: soft-serve-0.7.4

#### Testing the changes
- I tested the changes in this PR: **briefly**

#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, x64 glibc


A patch file from https://github.com/void-linux/void-packages/pull/49215.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-soft-serve-49215.patch --]
[-- Type: text/x-diff, Size: 2156 bytes --]

From 601d5b4d97afd1db01036d57c2b84390e85f63ad Mon Sep 17 00:00:00 2001
From: zenobit <zen@osowoso.xyz>
Date: Sun, 17 Sep 2023 22:39:10 +0200
Subject: [PATCH] New package: soft-serve-0.7.4

---
 srcpkgs/soft-serve/files/soft-serve/run |  7 +++++
 srcpkgs/soft-serve/template             | 35 +++++++++++++++++++++++++
 2 files changed, 42 insertions(+)
 create mode 100644 srcpkgs/soft-serve/files/soft-serve/run
 create mode 100644 srcpkgs/soft-serve/template

diff --git a/srcpkgs/soft-serve/files/soft-serve/run b/srcpkgs/soft-serve/files/soft-serve/run
new file mode 100644
index 00000000000000..e91512ccd57068
--- /dev/null
+++ b/srcpkgs/soft-serve/files/soft-serve/run
@@ -0,0 +1,7 @@
+#!/bin/sh
+exec 2>&1
+
+export HOME=/var/lib/soft-serve
+export SOFT_SERVE_DATA_PATH="${HOME}"
+
+exec chpst -u _softserve:_softserve soft serve
diff --git a/srcpkgs/soft-serve/template b/srcpkgs/soft-serve/template
new file mode 100644
index 00000000000000..2f855aa70ad42a
--- /dev/null
+++ b/srcpkgs/soft-serve/template
@@ -0,0 +1,35 @@
+# Template file for 'soft-serve'
+pkgname=soft-serve
+version=0.7.4
+revision=1
+build_style=go
+build_helper=qemu
+go_import_path="github.com/charmbracelet/soft-serve"
+go_ldflags="-X main.Version=${version}"
+go_package="github.com/charmbracelet/soft-serve/cmd/soft"
+depends="git"
+short_desc="Tasty, self-hostable Git server for the command line"
+maintainer="zenobit <zen@osowoso.xyz>"
+license="MIT"
+homepage="https://github.com/charmbracelet/soft-serve"
+changelog="https://github.com/charmbracelet/soft-serve/releases"
+distfiles="https://github.com/charmbracelet/soft-serve/archive/refs/tags/v${version}.tar.gz"
+checksum=56ba8a51446afa3b53d451a86f0fdbef0a4ce90d5072a0ef9359e3150c466d50
+
+system_accounts="_softserve"
+_softserve_homedir="/var/lib/soft-serve"
+make_dirs="/var/lib/soft-serve 0755 _softserve _softserve"
+
+post_install() {
+	local _soft="${DESTDIR}/usr/bin/soft"
+	for shell in bash fish zsh; do
+		vtargetrun ${_soft} completion ${shell} > soft.${shell}
+		vcompletion soft.${shell} ${shell} soft
+	done
+
+	vtargetrun ${_soft} man > soft.1
+	vman soft.1
+
+	vlicense LICENSE
+	vsv soft-serve
+}

  parent reply	other threads:[~2024-03-11  1:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-10  7:31 [PR PATCH] " zen0bit
2024-03-10 16:52 ` [PR REVIEW] " meator
2024-03-11  1:26 ` zen0bit [this message]
2024-03-18 10:38 ` [PR PATCH] [Updated] " zen0bit
2024-03-27  9:35 ` zen0bit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240311012646.D7835221EE@inbox.vuxu.org \
    --to=zen0bit@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).