blob: bc177df8decea832e865e507f0def5683d102a7b (
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
|
#!/bin/bash
TMP_PATH=/tmp/guildedupdate
curversion=$(awk -F'=' '/pkgver=/ { print $2 }' PKGBUILD)
rm -rf $TMP_PATH
mkdir -p $TMP_PATH
cd $TMP_PATH || exit
wget https://www.guilded.gg/downloads/Guilded-Linux.deb
hash=$(sha256sum Guilded-Linux.deb | awk '{ print $1 }')
ar x Guilded-Linux.deb
tar xzf control.tar.gz
version=$(awk '/^Version:/ { print $2 }' control | cut -d '-' -f1 | sed s/~release//)
echo "--------------------"
echo "sha256sum: $hash"
echo "version: $version"
if [ "$version" != "$curversion" ]; then
echo "Package is outdated! Please update PKGBUILD and .SRCINFO"
else
echo "Package is up to date!"
fi
echo "--------------------"
rm -rf $TMP_PATH
|