# vim: set syn=sh: # Packager: Phill Watkins pkgname=google-chrome-update pkgver=0.4 pkgrel=1pw arch=noarch source=("google-chrome-update.gz" "google-chrome-update.conf.gz" "README.Slackware.gz" "crontab.sample.gz") sourcetemplate=http://people.salixos.org/pwatk/packages/current/ap/$pkgname docs=("README.Slackware" "crontab.sample" "google-chrome-update.conf") #url= options=('nosrcpack' 'noautodotnew') doinst() { dotnew() { NEW="${1}.new" OLD="$1" if [ ! -e $OLD ]; then mv $NEW $OLD elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then rm $NEW fi } dotnew etc/default/google-chrome-update } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "google-chrome-update (Google Chrome auto-updater)" "This package creates a cron job to automatically check for updated" "versions of the Google Chrome web browser on a daily basis." "" "When a new version is detected it is downloaded, packaged and then" "added to a local repositiory for installation via slapt-get." "" "Note: The cron job and local repository are NOT enabled by default." "Please read the 'README.Slackware' for help." ) build() { set -e install -Dm 0755 $startdir/src/google-chrome-update $startdir/pkg/etc/cron.daily/google-chrome-update install -Dm 0644 $startdir/src/google-chrome-update.conf $startdir/pkg/etc/default/google-chrome-update.new set +e }