summarylogtreecommitdiffstats
path: root/update-pkg.sh
blob: 1b47bca905c6d155b724532d14e7e94c9b0199ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/bash

# get last pkgver
pkgver=$(curl -s "https://ftp.mozilla.org/pub/devedition/releases/" | awk -F'/' '/href.*releases\// {print $5}' | sort -Vr | head -n1)
echo "last FF-dev release: ${pkgver}"
[ "$1" == "-v" ] && exit 0
[ -e "PKGBUILD" ] || exit 1

sed -i -e "s/pkgver=.*/pkgver=${pkgver}/" ./PKGBUILD

#makepkg -g -f -p PKGBUILD
updpkgsums

makepkg --printsrcinfo >.SRCINFO

makepkg -scf

rm SHA512SUMS-*