From 3ccb4d8a3d0641a915ea726b8378e3762fd57d10 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 15 Dec 2024 00:43:41 -0800 Subject: [PATCH] Add PKGBUILD --- .gitignore | 3 +++ PKGBUILD | 24 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .gitignore create mode 100644 PKGBUILD diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c586a85 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.pkg.tar.* +/pkg/ +/src/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..c64a924 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +pkgname=laminar-config +pkgver=1 +pkgrel=1 +arch=("any") + +prepare() +{ + if git status; then + git pull + else + git clone ../.git "${srcdir}" + fi +} + +package() +{ + for d in contexts jobs scripts; do + mkdir -vp "${pkgdir}/var/lib/laminar/cfg/${d}" + + for f in $(find "$d" -type f -not -name '.*'); do + install "$f" "${pkgdir}/var/lib/laminar/cfg/${f}" + done + done +}