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