summarylogtreecommitdiffstats
path: root/justfile
blob: 253af3f76447fd0b9413fc13d4009bfb4ade44cc (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
#!/usr/bin/env just --justfile

test: clean prep build check

prep:
  updpkgsums
  makepkg --printsrcinfo > .SRCINFO

build:
  makepkg -si

check:
  namcap PKGBUILD 
  @echo "→ Running namcap on PKGBUILD and built package..."
  pkgfile=$(ls *.pkg.tar.* 2>/dev/null | head -n1); \
  if [ -z "$pkgfile" ]; then \
      echo "No built package found. Run 'makepkg -si' first." >&2; \
      exit 1; \
  fi; \
  echo "Checking $pkgfile"; \
  namcap PKGBUILD "$pkgfile" \
    | grep -v "Dependency python-" \
    || true

clean:
  yay -Rns  --noconfirm python-yaucl
  rm -f *.tar.gz
  rm -f *.tar.zst
  rm -f -rf pkg/
  rm -f -rf src/