2016-05-27 03:27:27 +00:00
|
|
|
# Template file for 'google-chrome'
|
2016-10-18 01:26:31 +00:00
|
|
|
_chromeVersion=54.0.2840.59
|
2016-05-27 03:27:27 +00:00
|
|
|
_chromeRevision=1
|
|
|
|
_channel=stable
|
|
|
|
|
2016-06-10 23:39:50 +00:00
|
|
|
pkgname=google-chrome
|
2016-05-27 03:27:27 +00:00
|
|
|
version=${_chromeVersion}.${_chromeRevision}
|
2016-10-18 01:26:31 +00:00
|
|
|
revision=1
|
2016-05-27 03:27:27 +00:00
|
|
|
maintainer="Michael Aldridge <aldridge.mac@gmail.com>"
|
|
|
|
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}"
|
2016-10-18 01:26:31 +00:00
|
|
|
checksum=51101b9aeb30eb04e09f44c2ea3ece8b8d1a735d23acff02d0ad7f77721e4e7e
|
2016-05-27 03:27:27 +00:00
|
|
|
|
|
|
|
do_extract() {
|
|
|
|
mkdir -p ${DESTDIR}
|
2016-06-10 23:39:50 +00:00
|
|
|
ar x ${XBPS_SRCDISTDIR}/google-chrome-${version}/${_filename}
|
2016-05-27 03:27:27 +00:00
|
|
|
}
|
2016-07-14 21:29:48 +00:00
|
|
|
|
2016-05-27 03:27:27 +00:00
|
|
|
do_install() {
|
|
|
|
tar xf data.tar.xz -C ${DESTDIR}
|
2016-07-14 21:29:48 +00:00
|
|
|
|
|
|
|
# Install the icons
|
|
|
|
for size in 16 22 24 32 48 64 128 256; do
|
|
|
|
# Create the google chrome xdg directory
|
2016-08-13 03:01:00 +00:00
|
|
|
mkdir -p ${DESTDIR}/usr/share/icons/hicolor/${size}x${size}/apps
|
2016-07-14 21:29:48 +00:00
|
|
|
|
|
|
|
# Copy the google chrome icon
|
|
|
|
mv ${DESTDIR}/opt/google/chrome/product_logo_${size}.png \
|
2016-08-13 03:01:00 +00:00
|
|
|
${DESTDIR}/usr/share/icons/hicolor/${size}x${size}/apps/google-chrome.png
|
2016-07-14 21:29:48 +00:00
|
|
|
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
|
2016-05-27 03:27:27 +00:00
|
|
|
}
|