diff --git a/PKGBUILD b/PKGBUILD index 47aec27128c8d..134fc50a35e11 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,6 +1,7 @@ -# Maintainer: Knut Ahlers +# Maintainer: Christian Heusel +# Contributor: Knut Ahlers # Contributor: Det -# Contributors: t3ddy, Lex Rivera aka x-demon, ruario +# Contributor: t3ddy, Lex Rivera aka x-demon, ruario # Check for new Linux releases in: http://googlechromereleases.blogspot.com/search/label/Dev%20updates # or use: $ curl -s https://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/other.xml.gz | gzip -df | awk -F\" '/pkgid/{ sub(".*-","",$4); print $4": "$10 }' @@ -40,10 +41,8 @@ sha512sums=('8774061878609fd957c1d6314410b9c0d0ec384bbd5d52ebca4f0bb1dd4be252605 '349fc419796bdea83ebcda2c33b262984ce4d37f2a0a13ef7e1c87a9f619fd05eb8ff1d41687f51b907b43b9a2c3b4a33b9b7c3a3b28c12cf9527ffdbd1ddf2e') package() { - echo " -> Extracting the data.tar.xz..." bsdtar -xf data.tar.xz -C "$pkgdir/" - echo " -> Moving stuff in place..." # Launcher install -m755 google-chrome-$_channel.sh "$pkgdir"/usr/bin/google-chrome-$_channel @@ -58,13 +57,13 @@ package() { install -Dm644 "$pkgdir"/opt/google/chrome-$_channel/WidevineCdm/LICENSE \ "$pkgdir"/usr/share/licenses/google-chrome-$_channel/WidevineCdm-LICENSE.txt - echo " -> Fixing Chrome desktop entry..." + # Fix the Chrome desktop entry sed -i \ -e "/Exec=/i\StartupWMClass=Google-chrome-$_channel" \ -e "s/x-scheme-handler\/ftp;\?//g" \ "$pkgdir"/usr/share/applications/google-chrome-$_channel.desktop - echo " -> Removing Debian Cron job, duplicate product logos and menu directory..." + # Remove the Debian Cron job, duplicate product logos and menu directory rm -r \ "$pkgdir"/etc/cron.daily/ \ "$pkgdir"/opt/google/chrome-$_channel/cron/ \ diff --git a/google-chrome-dev.install b/google-chrome-dev.install index b756c9d592049..c2868ee430ece 100644 --- a/google-chrome-dev.install +++ b/google-chrome-dev.install @@ -1,22 +1,14 @@ # Colored makepkg-like functions -msg_blue() { - printf "${blue}==>${bold} $1${all_off}\n" -} - note() { - printf "${blue}==>${yellow} NOTE:${bold} $1${all_off}\n" + printf "${_blue}==>${_yellow} NOTE:${_bold} %s${_all_off}\n" "$1" } -all_off="$(tput sgr0)" -bold="${all_off}$(tput bold)" -blue="${bold}$(tput setaf 4)" -yellow="${bold}$(tput setaf 3)" +_all_off="$(tput sgr0)" +_bold="${_all_off}$(tput bold)" +_blue="${_bold}$(tput setaf 4)" +_yellow="${_bold}$(tput setaf 3)" post_install() { note "Custom flags should be put directly in: ~/.config/chrome-dev-flags.conf" note "The launcher is called: 'google-chrome-unstable'" } - -post_upgrade() { - post_install -}