Skip to content

Commit e644965

Browse files
committed
Add Arch package metadata verifier
1 parent 2ac60e7 commit e644965

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
4+
repo_root="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
5+
pkgbuild="$repo_root/packaging/linux/arch/PKGBUILD"
6+
7+
test -f "$pkgbuild"
8+
bash -n "$pkgbuild"
9+
10+
grep -q '^pkgname=turtle-term$' "$pkgbuild"
11+
grep -q '^pkgver=0.1.0$' "$pkgbuild"
12+
grep -q "arch=('x86_64' 'aarch64')" "$pkgbuild"
13+
grep -q "license=('MIT')" "$pkgbuild"
14+
grep -q 'https://github.com/SourceOS-Linux/TurtleTerm' "$pkgbuild"
15+
grep -q 'TURTLE_TERM_STAGE_PREFIX' "$pkgbuild"
16+
grep -q 'packaging/scripts/stage-linux-package.sh' "$pkgbuild"
17+
18+
if grep -qi 'org.wezfurlong\|SourceOS-Linux/wezterm' "$pkgbuild"; then
19+
echo 'PKGBUILD contains stale upstream product identity' >&2
20+
exit 1
21+
fi
22+
23+
echo "verified TurtleTerm Arch package metadata"

0 commit comments

Comments
 (0)