laminar-config/PKGBUILD

32 lines
648 B
Text
Raw Permalink Normal View History

2024-12-15 09:43:41 +01:00
pkgname=laminar-config
pkgver=20241217.2229
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 log -1 --pretty=format:"%cd" --date=format:"%Y%m%d.%H%M" | sed s/-//g
2024-12-18 07:29:09 +01:00
}
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
}