mirror of
https://github.com/luzifer-aur/google-chrome-dev.git
synced 2024-12-20 23:01:16 +00:00
Support ~/.config/chrome-dev-flags.conf
This commit is contained in:
parent
f22de421e5
commit
fde3de98a6
4 changed files with 19 additions and 3 deletions
2
.SRCINFO
2
.SRCINFO
|
@ -32,7 +32,9 @@ pkgbase = google-chrome-dev
|
||||||
provides = pepper-flash
|
provides = pepper-flash
|
||||||
options = !emptydirs
|
options = !emptydirs
|
||||||
options = !strip
|
options = !strip
|
||||||
|
source = google-chrome-unstable
|
||||||
source = eula_text.html
|
source = eula_text.html
|
||||||
|
md5sums = 00541a2eaedf40c2217f17f9345aaa5c
|
||||||
md5sums = b7e752f549b215ac77f284b6486794b6
|
md5sums = b7e752f549b215ac77f284b6486794b6
|
||||||
source_i686 = google-chrome-unstable_46.0.2490.4_i386.deb::https://dl.google.com/linux/direct/google-chrome-unstable_current_i386.deb
|
source_i686 = google-chrome-unstable_46.0.2490.4_i386.deb::https://dl.google.com/linux/direct/google-chrome-unstable_current_i386.deb
|
||||||
md5sums_i686 = 3abe6d00eadda73e9a839b721edc5b23
|
md5sums_i686 = 3abe6d00eadda73e9a839b721edc5b23
|
||||||
|
|
9
PKGBUILD
9
PKGBUILD
|
@ -20,10 +20,12 @@ provides=('google-chrome' 'pepper-flash')
|
||||||
options=('!emptydirs' '!strip')
|
options=('!emptydirs' '!strip')
|
||||||
install=$pkgname.install
|
install=$pkgname.install
|
||||||
_channel=unstable
|
_channel=unstable
|
||||||
source=('eula_text.html')
|
source=('google-chrome-unstable'
|
||||||
|
'eula_text.html')
|
||||||
source_i686=("google-chrome-${_channel}_${pkgver}_i386.deb::https://dl.google.com/linux/direct/google-chrome-${_channel}_current_i386.deb")
|
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")
|
source_x86_64=("google-chrome-${_channel}_${pkgver}_amd64.deb::https://dl.google.com/linux/direct/google-chrome-${_channel}_current_amd64.deb")
|
||||||
md5sums=('b7e752f549b215ac77f284b6486794b6')
|
md5sums=('00541a2eaedf40c2217f17f9345aaa5c'
|
||||||
|
'b7e752f549b215ac77f284b6486794b6')
|
||||||
md5sums_i686=('3abe6d00eadda73e9a839b721edc5b23')
|
md5sums_i686=('3abe6d00eadda73e9a839b721edc5b23')
|
||||||
md5sums_x86_64=('4cbe8b5b5fd11d1ca17c3fa6522c24aa')
|
md5sums_x86_64=('4cbe8b5b5fd11d1ca17c3fa6522c24aa')
|
||||||
|
|
||||||
|
@ -36,6 +38,9 @@ package() {
|
||||||
bsdtar -xf data.tar.xz -C "$pkgdir/"
|
bsdtar -xf data.tar.xz -C "$pkgdir/"
|
||||||
|
|
||||||
msg2 "Moving stuff in place..."
|
msg2 "Moving stuff in place..."
|
||||||
|
# Launcher
|
||||||
|
install -m755 google-chrome-unstable "$pkgdir"/usr/bin/
|
||||||
|
|
||||||
# Icons
|
# Icons
|
||||||
for i in 16x16 22x22 24x24 32x32 48x48 64x64 128x128 256x256; do
|
for i in 16x16 22x22 24x24 32x32 48x48 64x64 128x128 256x256; do
|
||||||
install -Dm644 "$pkgdir"/opt/google/chrome-$_channel/product_logo_${i/x*}.png \
|
install -Dm644 "$pkgdir"/opt/google/chrome-$_channel/product_logo_${i/x*}.png \
|
||||||
|
|
|
@ -22,7 +22,7 @@ _update() {
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
_update
|
_update
|
||||||
|
note "Custom flags should be put directly in: ~/.config/chrome-dev-flags.conf"
|
||||||
note "The launcher is called: 'google-chrome-unstable'"
|
note "The launcher is called: 'google-chrome-unstable'"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
9
google-chrome-unstable
Normal file
9
google-chrome-unstable
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Allow users to override command-line options
|
||||||
|
if [[ -f ~/.config/chrome-dev-flags.conf ]]; then
|
||||||
|
CHROME_USER_FLAGS="$(cat ~/.config/chrome-dev-flags.conf)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Launch
|
||||||
|
exec /opt/google/chrome-unstable/google-chrome-unstable $CHROME_USER_FLAGS $@
|
Loading…
Reference in a new issue