forked from archsink/pkgbuilds
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbump-derived
More file actions
executable file
·35 lines (30 loc) · 754 Bytes
/
bump-derived
File metadata and controls
executable file
·35 lines (30 loc) · 754 Bytes
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
33
34
35
#!/bin/bash
set -e
cd "$(dirname "$0")"
for tool in updpkgsums strip git; do
if ! command -v "$tool" > /dev/null; then
echo "This script requires $tool on your PATH!"
exit 1
fi
done
echo "==> Reading packages"
pkgs=()
while IFS= read -r line; do
if [[ "$line" != "#"* ]] && [[ -n "$line" ]]; then
pkgs+=("$line")
fi
done < packages.txt
echo "==> Updating derived info"
for pkg in "${pkgs[@]}"; do
echo "--> $pkg"
(
cd "$pkg"
updpkgsums
grep -l -R 'BEGIN PGP PUBLIC KEY BLOCK' | while read -r keyfile; do
echo "Found GPG keyfile $keyfile, importing."
gpg --import "$keyfile"
done
makepkg --nobuild --noprepare --nodeps # Autobump VCS versions
makepkg --printsrcinfo > .SRCINFO
)
done