| 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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 ADDITION_DEPS="ca-certificates, libappindicator1, libcurl3, \ | 292 ADDITION_DEPS="ca-certificates, libappindicator1, libcurl3, \ |
| 293 libnss3 (>= 3.14.3), lsb-base (>=3.2), xdg-utils (>= 1.0.2), wget" | 293 libnss3 (>= 3.14.3), lsb-base (>=3.2), xdg-utils (>= 1.0.2), wget" |
| 294 | 294 |
| 295 # Fix-up libnspr dependency due to renaming in Ubuntu (the old package still | 295 # Fix-up libnspr dependency due to renaming in Ubuntu (the old package still |
| 296 # exists, but it was moved to "universe" repository, which isn't installed by | 296 # exists, but it was moved to "universe" repository, which isn't installed by |
| 297 # default). | 297 # default). |
| 298 DPKG_SHLIB_DEPS=$(sed \ | 298 DPKG_SHLIB_DEPS=$(sed \ |
| 299 's/\(libnspr4-0d ([^)]*)\), /\1 | libnspr4 (>= 4.9.5-0ubuntu0), /g' \ | 299 's/\(libnspr4-0d ([^)]*)\), /\1 | libnspr4 (>= 4.9.5-0ubuntu0), /g' \ |
| 300 <<< $DPKG_SHLIB_DEPS) | 300 <<< $DPKG_SHLIB_DEPS) |
| 301 | 301 |
| 302 # Fix-up libudev dependency because Ubuntu 13.04 has libudev1 instead of | |
| 303 # libudev0. | |
| 304 DPKG_SHLIB_DEPS=$(sed 's/\(libudev0 ([^)]*)\), /\1 | libudev1 (>= 198), /g' \ | |
| 305 <<< $DPKG_SHLIB_DEPS) | |
| 306 | |
| 307 COMMON_DEPS="${DPKG_SHLIB_DEPS}, ${ADDITION_DEPS}" | 302 COMMON_DEPS="${DPKG_SHLIB_DEPS}, ${ADDITION_DEPS}" |
| 308 COMMON_PREDEPS="dpkg (>= 1.14.0)" | 303 COMMON_PREDEPS="dpkg (>= 1.14.0)" |
| 309 | 304 |
| 310 | 305 |
| 311 # Make everything happen in the OUTPUTDIR. | 306 # Make everything happen in the OUTPUTDIR. |
| 312 cd "${OUTPUTDIR}" | 307 cd "${OUTPUTDIR}" |
| 313 | 308 |
| 314 case "$TARGETARCH" in | 309 case "$TARGETARCH" in |
| 315 ia32 ) | 310 ia32 ) |
| 316 export ARCHITECTURE="i386" | 311 export ARCHITECTURE="i386" |
| 317 stage_install_debian | 312 stage_install_debian |
| 318 ;; | 313 ;; |
| 319 x64 ) | 314 x64 ) |
| 320 export ARCHITECTURE="amd64" | 315 export ARCHITECTURE="amd64" |
| 321 stage_install_debian | 316 stage_install_debian |
| 322 ;; | 317 ;; |
| 323 * ) | 318 * ) |
| 324 echo | 319 echo |
| 325 echo "ERROR: Don't know how to build DEBs for '$TARGETARCH'." | 320 echo "ERROR: Don't know how to build DEBs for '$TARGETARCH'." |
| 326 echo | 321 echo |
| 327 exit 1 | 322 exit 1 |
| 328 ;; | 323 ;; |
| 329 esac | 324 esac |
| 330 | 325 |
| 331 do_package | 326 do_package |
| OLD | NEW |