Add PKGBUILD
This commit is contained in:
parent
affb2b1822
commit
3ccb4d8a3d
2 changed files with 27 additions and 0 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
*.pkg.tar.*
|
||||
/pkg/
|
||||
/src/
|
24
PKGBUILD
Normal file
24
PKGBUILD
Normal 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
|
||||
}
|
Loading…
Reference in a new issue