]> git.pld-linux.org Git - packages/google-chrome.git/blobdiff - update-source.sh
- no need for pepperflash links for chromim-browser it can load from browser-plugins dir
[packages/google-chrome.git] / update-source.sh
old mode 100644 (file)
new mode 100755 (executable)
index d983e4f..3231ebe
@@ -1,7 +1,20 @@
 #!/bin/sh
+# arch to check package. irrelevant for actual arch
 arch=x86_64
+# branch: stable, beta, unstable. default: stable
 branch=${1:-stable}
-sourceurl=http://dl.google.com/linux/chrome/rpm/$branch/$arch/
+
+case "${branch}" in
+       stable|beta|unstable)
+               ;;
+       *)
+               echo "$0: Unknown branch: $branch. Supported branches: stable, beta, unstable." >&2
+               exit 1
+               ;;
+esac
+
+sourceurl=http://dl.google.com/linux/chrome/rpm/stable/$arch/
+
 set -e
 
 echo -n "Fetching latest version... "
@@ -25,8 +38,10 @@ if [ "$oldrev" != "$rev" ]; then
        echo "Updating $specfile for $ver r$rev"
        sed -i -e "
                s/^\(%define[ \t]\+svnrev[ \t]\+\)[0-9]\+\$/\1$rev/
+               s/^\(%define[ \t]\+state[ \t]\+\)[a-z]\+\$/\1$branch/
                s/^\(Version:[ \t]\+\)[.0-9]\+\$/\1$ver/
        " $specfile
+       ../builder -ncs -g $specfile
        ../builder -ncs -5 $specfile
 else
        echo "Already up to date"
This page took 0.030062 seconds and 4 git commands to generate.