diff --git a/.SRCINFO b/.SRCINFO index d4fe707..238690e 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -32,7 +32,9 @@ pkgbase = google-chrome-beta provides = pepper-flash options = !emptydirs options = !strip + source = google-chrome-beta source = eula_text.html + md5sums = aa5660e4808cd290ff7b50670a5ad380 md5sums = b7e752f549b215ac77f284b6486794b6 source_i686 = google-chrome-beta_45.0.2454.46_i386.deb::https://dl.google.com/linux/direct/google-chrome-beta_current_i386.deb md5sums_i686 = 4aa3f5e82da809ac6fedba9c6303b031 diff --git a/PKGBUILD b/PKGBUILD index 7aaf142..5556562 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -20,10 +20,12 @@ provides=('google-chrome' 'pepper-flash') options=('!emptydirs' '!strip') install=$pkgname.install _channel=beta -source=('eula_text.html') +source=('google-chrome-beta' + 'eula_text.html') source_i686=("google-chrome-${_channel}_${pkgver}_i386.deb::https://dl.google.com/linux/direct/google-chrome-${_channel}_current_i386.deb") source_x86_64=("google-chrome-${_channel}_${pkgver}_amd64.deb::https://dl.google.com/linux/direct/google-chrome-${_channel}_current_amd64.deb") -md5sums=('b7e752f549b215ac77f284b6486794b6') +md5sums=('aa5660e4808cd290ff7b50670a5ad380' + 'b7e752f549b215ac77f284b6486794b6') md5sums_i686=('4aa3f5e82da809ac6fedba9c6303b031') md5sums_x86_64=('7086e37a8940714a9e9dfb2b5419ee36') @@ -32,6 +34,9 @@ package() { bsdtar -xf data.tar.xz -C "$pkgdir/" msg2 "Moving stuff in place..." + # Launcher + install -m755 google-chrome-beta "$pkgdir"/usr/bin/ + # Icons for i in 16x16 22x22 24x24 32x32 48x48 64x64 128x128 256x256; do install -Dm644 "$pkgdir"/opt/google/chrome-$_channel/product_logo_${i/x*}.png \ diff --git a/google-chrome-beta b/google-chrome-beta new file mode 100644 index 0000000..0b2a2bb --- /dev/null +++ b/google-chrome-beta @@ -0,0 +1,9 @@ +#!/bin/bash + +# Allow users to override command-line options +if [[ -f ~/.config/chrome-beta-flags.conf ]]; then + CHROME_USER_FLAGS="$(cat ~/.config/chrome-beta-flags.conf)" +fi + +# Launch +exec /opt/google/chrome-beta/google-chrome-beta $CHROME_USER_FLAGS $@ \ No newline at end of file diff --git a/google-chrome-beta.install b/google-chrome-beta.install index 846ba20..faf8772 100644 --- a/google-chrome-beta.install +++ b/google-chrome-beta.install @@ -22,7 +22,7 @@ _update() { post_install() { _update - + note "Custom flags should be put directly in: ~/.config/chrome-beta-flags.conf" note "The launcher is called: 'google-chrome-beta'" }