blob: c4c621e21868656d47e867ee6a598970fc157e75 (
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
|
#!/bin/bash
# A convenience script for the package maintainers.
# This file is neither installed nor run on package installation.
set -eu # Bail if unexpected things happen
unset PACMAN
PATH=/usr/bin:$PATH
pkgdir=${0%%/*} # dirname $0
cd -P -- "$pkgdir" || exit 1 # Allow to be called from any directory
if [[ -d src ]]; then
makepkg -ef
else
makepkg -f
fi
shopt -s nullglob
for specimen in PKGBUILD *.tar.{xz,zst}; do
echo "++ namcap of $specimen"
namcap "$specimen"
done
makepkg --printsrcinfo >| .SRCINFO && echo "Updated .SRCINFO" >&2
|