blob: 4e509cb20eab256806989e811f6e55ce92aef905 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
version: "3"
tasks:
default:
cmds:
- task: build
build:
desc: Build Arch package
cmds:
- sed -ri '/^sha256sums=.+$/d' PKGBUILD
- makepkg -g | sed -r 's/\s+/ /g' | tr -d '\n' >>PKGBUILD
- echo >>PKGBUILD
- makepkg -fcC
- makepkg --printsrcinfo >.SRCINFO
install:
desc: Install the package
cmds:
- task: build
- |-
if command -v yay &>/dev/null; then
yay -U --noconfirm *.pkg.tar.zst
else
sudo pacman -U --noconfirm *.pkg.tar.zst
fi
- task: check
check:
desc: Prints hook help info using mkinitcpio
cmds:
- mkinitcpio -H dm-nuke || true
clean:
desc: Remove build artifacts
cmds:
- rm -rvf src pkg *.pkg.tar.zst
|