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 +}