Fix some issues with PKGBUILD
This commit is contained in:
parent
7690809c8f
commit
09d15858e2
1 changed files with 11 additions and 4 deletions
15
PKGBUILD
15
PKGBUILD
|
@ -1,19 +1,26 @@
|
||||||
pkgname=laminar-config
|
pkgname=laminar-config
|
||||||
pkgver=1
|
pkgver=20241217
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
arch=("any")
|
arch=("any")
|
||||||
|
|
||||||
|
pkgver()
|
||||||
|
{
|
||||||
|
cd "${srcdir}/${pkgname}"
|
||||||
|
git --git-dir ../.git log -1 --pretty=format:"%cd" --date=short | sed s/-//g
|
||||||
|
}
|
||||||
|
|
||||||
prepare()
|
prepare()
|
||||||
{
|
{
|
||||||
if git status; then
|
if [[ -d "${srcdir}/${pkgname}" ]]; then
|
||||||
git pull
|
cd "${srcdir}/${pkgname}" && git pull origin
|
||||||
else
|
else
|
||||||
git clone ../.git "${srcdir}"
|
git clone ../.git "${srcdir}/${pkgname}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
package()
|
package()
|
||||||
{
|
{
|
||||||
|
cd "${srcdir}/${pkgname}"
|
||||||
for d in contexts jobs scripts; do
|
for d in contexts jobs scripts; do
|
||||||
mkdir -vp "${pkgdir}/var/lib/laminar/cfg/${d}"
|
mkdir -vp "${pkgdir}/var/lib/laminar/cfg/${d}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue