# Template file for 'google-chrome' _chromeVersion=52.0.2743.116 _chromeRevision=1 _channel=stable pkgname=google-chrome version=${_chromeVersion}.${_chromeRevision} revision=2 maintainer="Michael Aldridge " homepage="http://www.google.com/chrome/" license="chrome" short_desc="An attempt at creating a safer, faster, and more stable browser" only_for_archs="x86_64" repository=nonfree restricted=yes nostrip=yes _baseUrl="http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable" _filename="google-chrome-${_channel}_${_chromeVersion}-${_chromeRevision}_amd64.deb" _chromeUrl="${_baseUrl}/${_filename}" distfiles="${_chromeUrl}" checksum=483343ad8eac2c8e329180745f252516a15b9f1a6875a5fdbbdbf1b1d9ebd44e do_extract() { mkdir -p ${DESTDIR} ar x ${XBPS_SRCDISTDIR}/google-chrome-${version}/${_filename} } do_install() { tar xf data.tar.xz -C ${DESTDIR} # Install the icons for size in 16 22 24 32 48 64 128 256; do # Create the google chrome xdg directory mkdir -p ${DESTDIR}/usr/share/icons/google/${size}x${size}/apps # Copy the google chrome icon mv ${DESTDIR}/opt/google/chrome/product_logo_${size}.png \ ${DESTDIR}/usr/share/icons/google/${size}x${size}/apps/google-chrome.png done # Remove unused icons rm ${DESTDIR}/opt/google/chrome/*.xpm # Remove the Debian/Ubuntu crontab rm -rf ${DESTDIR}/etc rm -rf ${DESTDIR}/opt/google/chrome/cron }