diff --git a/srcpkgs/shiori/files/shiori/run b/srcpkgs/shiori/files/shiori/run new file mode 100644 index 00000000000..0cd56601f58 --- /dev/null +++ b/srcpkgs/shiori/files/shiori/run @@ -0,0 +1,4 @@ +#!/bin/sh + +[ -r ./conf ] && . ./conf +exec chpst -u _shiori shiori serve ${OPTS="--address 127.0.0.1 --port 8080"} diff --git a/srcpkgs/shiori/template b/srcpkgs/shiori/template new file mode 100644 index 00000000000..9a7ec952822 --- /dev/null +++ b/srcpkgs/shiori/template @@ -0,0 +1,23 @@ +# Template file for 'shiori' +pkgname=shiori +version=1.5.0 +revision=1 +build_style=go +go_import_path=github.com/go-shiori/shiori +short_desc="Simple bookmark manager built with Go" +maintainer="Frank Steinborn " +license="MIT" +homepage="https://github.com/go-shiori/shiori" +distfiles="${homepage}/archive/refs/tags/v${version}.tar.gz" +checksum=c2ebc0f009feb22f891c7ab0fa7b8c0d71e1cfc34a974c7503a702ec07d8e9ee + +system_accounts="_shiori" +_shiori_homedir="/var/lib/shiori" +_shiori_descr="shiori bookmark manager" + +make_dirs="/var/lib/shiori 0700 _shiori _shiori" + +post_install() { + vsv shiori + vlicense LICENSE +}