| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # | 2 # |
| 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 The Chromium 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 # TODO(mmoss) This currently only works with official builds, since non-official | 7 # TODO(mmoss) This currently only works with official builds, since non-official |
| 8 # builds don't add the "${BUILDDIR}/installer/" files needed for packaging. | 8 # builds don't add the "${BUILDDIR}/installer/" files needed for packaging. |
| 9 | 9 |
| 10 set -e | 10 set -e |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 rm -rf "$DUMMY_STAGING_DIR" | 288 rm -rf "$DUMMY_STAGING_DIR" |
| 289 | 289 |
| 290 # Additional dependencies not in the dpkg-shlibdeps output. | 290 # Additional dependencies not in the dpkg-shlibdeps output. |
| 291 ADDITION_DEPS="ca-certificates, libcurl3, \ | 291 ADDITION_DEPS="ca-certificates, libcurl3, \ |
| 292 lsb-base (>=3.2), xdg-utils (>= 1.0.2), wget" | 292 lsb-base (>=3.2), xdg-utils (>= 1.0.2), wget" |
| 293 | 293 |
| 294 # Fix-up libnspr dependency due to renaming in Ubuntu (the old package still | 294 # Fix-up libnspr dependency due to renaming in Ubuntu (the old package still |
| 295 # exists, but it was moved to "universe" repository, which isn't installed by | 295 # exists, but it was moved to "universe" repository, which isn't installed by |
| 296 # default). | 296 # default). |
| 297 DPKG_SHLIB_DEPS=$(sed \ | 297 DPKG_SHLIB_DEPS=$(sed \ |
| 298 's/\(libnspr4-0d ([^)]*)\), /\1 | libnspr4 (>= 4.9.5-0ubuntu0), /g' \ | 298 's/\(libnspr4-0d ([^)]*)\), /\1 | libnspr4 (>= 4.8.7-0ubuntu1), /g' \ |
| 299 <<< $DPKG_SHLIB_DEPS) | 299 <<< $DPKG_SHLIB_DEPS) |
| 300 | 300 |
| 301 # Fix-up libudev dependency because Ubuntu 13.04 has libudev1 instead of | 301 # Fix-up libudev dependency because Ubuntu 13.04 has libudev1 instead of |
| 302 # libudev0. | 302 # libudev0. |
| 303 DPKG_SHLIB_DEPS=$(sed 's/\(libudev0 ([^)]*)\), /\1 | libudev1 (>= 198), /g' \ | 303 DPKG_SHLIB_DEPS=$(sed 's/\(libudev0 ([^)]*)\), /\1 | libudev1 (>= 198), /g' \ |
| 304 <<< $DPKG_SHLIB_DEPS) | 304 <<< $DPKG_SHLIB_DEPS) |
| 305 | 305 |
| 306 COMMON_DEPS="${DPKG_SHLIB_DEPS}, ${ADDITION_DEPS}" | 306 COMMON_DEPS="${DPKG_SHLIB_DEPS}, ${ADDITION_DEPS}" |
| 307 COMMON_PREDEPS="dpkg (>= 1.14.0)" | 307 COMMON_PREDEPS="dpkg (>= 1.14.0)" |
| 308 | 308 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 321 ;; | 321 ;; |
| 322 * ) | 322 * ) |
| 323 echo | 323 echo |
| 324 echo "ERROR: Don't know how to build DEBs for '$TARGETARCH'." | 324 echo "ERROR: Don't know how to build DEBs for '$TARGETARCH'." |
| 325 echo | 325 echo |
| 326 exit 1 | 326 exit 1 |
| 327 ;; | 327 ;; |
| 328 esac | 328 esac |
| 329 | 329 |
| 330 do_package | 330 do_package |
| OLD | NEW |