Add PKGBUILD

This commit is contained in:
Tom Willemse 2024-12-15 00:43:41 -08:00
parent affb2b1822
commit 3ccb4d8a3d
2 changed files with 27 additions and 0 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
*.pkg.tar.*
/pkg/
/src/

24
PKGBUILD Normal file
View file

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