From 8576b493acc684eaf104100d62710e45953cba41 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Sun, 7 Mar 2021 11:48:45 +0100 Subject: [PATCH] New package: rundird-0.1.1 cross --- srcpkgs/rundird/files/rundird/run | 2 ++ srcpkgs/rundird/template | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 srcpkgs/rundird/files/rundird/run create mode 100644 srcpkgs/rundird/template diff --git a/srcpkgs/rundird/files/rundird/run b/srcpkgs/rundird/files/rundird/run new file mode 100644 index 000000000000..df06fdb0fc88 --- /dev/null +++ b/srcpkgs/rundird/files/rundird/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec /usr/bin/rundird diff --git a/srcpkgs/rundird/template b/srcpkgs/rundird/template new file mode 100644 index 000000000000..c7586a81b7b7 --- /dev/null +++ b/srcpkgs/rundird/template @@ -0,0 +1,23 @@ +# Template file for 'rundird' +pkgname=rundird +version=0.1.1 +revision=1 +hostmakedepends="zig" +makedepends="pam-devel" +short_desc="Simple daemon + PAM module providing an XDG_RUNTIME_DIR" +maintainer="Isaac Freund " +license="GPL-3.0-or-later" +homepage="https://github.com/ifreund/rundird" +distfiles="${homepage}/archive/v${version}.tar.gz" +checksum=d3a848fba0016841385aab57298164ba8f30377799c217b6b6abf83ce1d2ca91 + +do_install() { + DESTDIR="${DESTDIR}" zig build \ + --search-prefix $XBPS_CROSS_BASE \ + -Dtarget="${XBPS_TARGET_MACHINE%-musl}-linux-${XBPS_LIBC}" \ + -Drelease-safe --prefix /usr install +} + +post_install() { + vsv rundird +}