| OLD | NEW |
| 1 #!/usr/bin/make -f | 1 #!/usr/bin/make -f |
| 2 # -*- makefile -*- | 2 # -*- makefile -*- |
| 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 %: | 6 %: |
| 7 dh $@ | 7 dh $@ |
| 8 | 8 |
| 9 DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) | 9 DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) |
| 10 | 10 |
| 11 # Uncomment this to turn on verbose mode. | 11 # Uncomment this to turn on verbose mode. |
| 12 #export DH_VERBOSE=1 | 12 #export DH_VERBOSE=1 |
| 13 | 13 |
| 14 override_dh_auto_build: | 14 override_dh_auto_build: |
| 15 ./copy_chrome_zip.sh -a $(DEB_HOST_ARCH) | 15 ./copy_chrome_zip.sh -a $(DEB_HOST_ARCH) |
| 16 | 16 |
| 17 override_dh_auto_install: | 17 override_dh_auto_install: |
| 18 # (note: use ./dirs file instead of mkdir -p here) | 18 # (note: use ./dirs file instead of mkdir -p here) |
| 19 # Unzip chrome-linux.zip into chrome/ | 19 # Unzip chrome-linux.zip into chrome/ |
| 20 unzip $(CURDIR)/chrome-chromeos.zip | 20 unzip $(CURDIR)/chrome-chromeos.zip |
| 21 # We may need to rename .../chrome-linux to chrome-chromeos | 21 # We may need to rename .../chrome-linux to chrome-chromeos |
| 22 mv $(CURDIR)/chrome-linux $(CURDIR)/chrome-chromeos || true | 22 mv $(CURDIR)/chrome-linux $(CURDIR)/chrome-chromeos || true |
| 23 mkdir $(CURDIR)/chrome-chromeos/plugins |
| 23 mv $(CURDIR)/chrome-chromeos \ | 24 mv $(CURDIR)/chrome-chromeos \ |
| 24 $(CURDIR)/debian/chromeos-chrome/opt/google/chrome | 25 $(CURDIR)/debian/chromeos-chrome/opt/google/chrome |
| 25 | 26 |
| 26 override_dh_install: | 27 override_dh_install: |
| 27 dh_install | 28 dh_install |
| 28 # Make the script use "google-chrome" instead of "chromium" for | 29 # Make the script use "google-chrome" instead of "chromium" for |
| 29 # official builds. | 30 # official builds. |
| 30 if [ "$(USE_RELEASE_CHROME)" = "1" ]; then \ | 31 if [ "$(USE_RELEASE_CHROME)" = "1" ]; then \ |
| 31 perl -pi -le '$$_ = "PROFILE_DIR=google-chrome" if /^PROFILE_DIR=/' \ | 32 perl -pi -le '$$_ = "PROFILE_DIR=google-chrome" if /^PROFILE_DIR=/' \ |
| 32 $(CURDIR)/debian/chromeos-chrome/usr/bin/chromeos-chrome-loop; \ | 33 $(CURDIR)/debian/chromeos-chrome/usr/bin/chromeos-chrome-loop; \ |
| 33 fi | 34 fi |
| 34 | 35 |
| 35 override_dh_shlibdeps: | 36 override_dh_shlibdeps: |
| 36 # Don't scan shlibs for dependencies, since the chroot environment | 37 # Don't scan shlibs for dependencies, since the chroot environment |
| 37 # doesn't have all the packages installed to run chrome. | 38 # doesn't have all the packages installed to run chrome. |
| OLD | NEW |