1 # Maintainer: t3ddy <t3ddy1988 "at" gmail {dot} com>
2 # Contributor: Lex Rivera aka x-demon <aur@x-demon.org>
3 # Contributor: Det <nimetonmaili at gmail a-dot com>
5 pkgname=google-chrome-dev
6 pkgver=18.0.1003.1 # Check for new Linux releases in: http://googlechromereleases.blogspot.com/search/label/Dev%20updates
8 pkgdesc="An attempt at creating a safer, faster, and more stable browser (Dev Channel)"
10 url="http://www.google.com/chrome"
11 license=('custom:chrome')
12 depends=('alsa-lib' 'gconf' 'gtk2' 'hicolor-icon-theme' 'libpng12' 'libxslt' 'libxss' 'nss' 'xdg-utils')
13 optdepends=('gecko-mediaplayer' 'kdebase-kdialog')
14 provides=("google-chrome=$pkgver")
15 conflicts=('google-chrome')
16 install=${pkgname}.install
19 if [ "$CARCH" = "i686" ]; then
21 md5sums=('a06d4c6710c0795f22b4eb03bd6fef1e')
22 elif [ "$CARCH" = "x86_64" ]; then
24 optdepends+=('flashplugin')
25 md5sums=('d24645e0879f25fe8857be0b4536c830')
28 source=("http://dl.google.com/linux/direct/google-chrome-${_channel}_current_${_arch}.deb")
32 msg "Extracting the Google Chrome package"
33 ar -xv google-chrome-${_channel}_current_${_arch}.deb
34 tar -xvf data.tar.lzma
35 msg2 "Done extracting!"
37 msg "Preparing install"
38 install -d "$pkgdir"/{opt,usr/{bin,share/applications}}
39 mv -v opt/google "$pkgdir"/opt
40 msg2 "Done preparing!"
42 msg "Actual installation"
43 ln -sv /opt/google/chrome/google-chrome "$pkgdir/usr/bin/"
44 ln -sv /usr/lib/mozilla/plugins "$pkgdir/opt/google/chrome"
45 mv -v "$pkgdir/opt/google/chrome/google-chrome.desktop" "$pkgdir/usr/share/applications"
47 mkdir "$pkgdir/opt/google/chrome/lib"
48 cd "$pkgdir/opt/google/chrome/lib"
49 ln -sv /usr/lib/libnspr4.so libnspr4.so.0d
50 ln -sv /usr/lib/libnss3.so libnss3.so.1d
51 ln -sv /usr/lib/libnssutil3.so libnssutil3.so.1d
52 ln -sv /usr/lib/libplc4.so libplc4.so.0d
53 ln -sv /usr/lib/libplds4.so libplds4.so.0d
54 ln -sv /usr/lib/libsmime3.so libsmime3.so.1d
55 ln -sv /usr/lib/libssl3.so libssl3.so.1d
57 # Installing icons to /usr/share/icons/hicolor/
58 for i in 16 32 48 256;
60 install -D "$pkgdir/opt/google/chrome/product_logo_${i}.png" "$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/google-chrome.png"
63 msg2 "Installation finished!"