blob: 164457a8b0e259c0516f3077b4cc74a4ab19615f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/bash
set -e
echo "Update the verion in PKGBUILD"
echo "Hit enter when done"
read
head -n -2 PKGBUILD > PKGBUILD.NEW
mv PKGBUILD.NEW PKGBUILD
rm -f vanta-amd64.deb
makepkg -g >> PKGBUILD
makepkg --printsrcinfo > .SRCINFO
makepkg --verifysource -f
makepkg -srf
echo "Testing locally"
docker build . -t arch:pkgtest
docker run -it -v $(pwd):/home/builduser arch:pkgtest bash -c "cd /home/builduser && read && makepkg -si"
echo "To test once published: docker run -it --rm thann/yay vanta-agent"
|