2024-12-15 09:43:41 +01:00
|
|
|
pkgname=laminar-config
|
2024-12-18 07:29:09 +01:00
|
|
|
pkgver=20241217
|
2024-12-15 09:43:41 +01:00
|
|
|
pkgrel=1
|
|
|
|
arch=("any")
|
|
|
|
|
2024-12-18 07:29:09 +01:00
|
|
|
pkgver()
|
|
|
|
{
|
|
|
|
cd "${srcdir}/${pkgname}"
|
|
|
|
git --git-dir ../.git log -1 --pretty=format:"%cd" --date=short | sed s/-//g
|
|
|
|
}
|
|
|
|
|
2024-12-15 09:43:41 +01:00
|
|
|
prepare()
|
|
|
|
{
|
2024-12-18 07:29:09 +01:00
|
|
|
if [[ -d "${srcdir}/${pkgname}" ]]; then
|
|
|
|
cd "${srcdir}/${pkgname}" && git pull origin
|
2024-12-15 09:43:41 +01:00
|
|
|
else
|
2024-12-18 07:29:09 +01:00
|
|
|
git clone ../.git "${srcdir}/${pkgname}"
|
2024-12-15 09:43:41 +01:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
package()
|
|
|
|
{
|
2024-12-18 07:29:09 +01:00
|
|
|
cd "${srcdir}/${pkgname}"
|
2024-12-15 09:43:41 +01:00
|
|
|
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
|
|
|
|
}
|