Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Side by Side Diff: src/third_party/ibus-hangul/make_pkg.sh

Issue 501150: Adding third_party/ibus-hangul/ to the Chromium OS build. (Closed)
Patch Set: Added a TODO comment. Removed 2 packages from package-list-prod.txt. Created 10 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/third_party/ibus-hangul/libhangul_0.0.10.orig.tar.gz ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/bin/bash
2
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 # Builds the .deb package.
8
9 # Load common constants. This should be the first executable line.
10 # The path to common.sh should be relative to your script's location.
11 COMMON_SH="$(dirname "$0")/../../scripts/common.sh"
12 . "$COMMON_SH"
13
14 # Command line options
15 DEFINE_string build_root "$DEFAULT_BUILD_ROOT" "Root of build output"
16
17 # Parse command line and update positional args
18 FLAGS "$@" || exit 1
19 eval set -- "${FLAGS_ARGV}"
20
21 # Die on any errors
22 set -e
23
24 # Step 1. Build and install libhangul packages.
25
26 # Remove previous package from output dir
27 PKG_BASE="libhangul"
28 # TODO(yusukes): support ARM.
29 OUT_DIR="$FLAGS_build_root/x86/local_packages"
30 rm -f "${OUT_DIR}/${PKG_BASE}_"*.deb
31
32 # Set up the debian build directory.
33 PKG_BUILD_DIR="${FLAGS_build_root}/${PKG_BASE}"
34 mkdir -p "$PKG_BUILD_DIR"
35 rm -rf "${PKG_BUILD_DIR}/libhangul-0.0.10"
36 # TODO(yusukes): We should get rid of the tar ball once the new libhangle is
37 # included in our repository.
38 tar xvzf "${TOP_SCRIPT_DIR}/libhangul_0.0.10.orig.tar.gz" -C "${PKG_BUILD_DIR}/"
39 rm -rf "${PKG_BUILD_DIR}/build"
40 mv "${PKG_BUILD_DIR}/libhangul-0.0.10" "${PKG_BUILD_DIR}/build"
41 pushd "${PKG_BUILD_DIR}/build"
42 # Apply patches
43 gunzip -c "${TOP_SCRIPT_DIR}/libhangul_0.0.10-1.diff.gz" | patch -p1
44 chmod u+x ./debian/rules
45
46 # Build the package
47 dpkg-buildpackage -b -tc -us -uc
48 sudo dpkg -i ../"${PKG_BASE}"*_*.deb # These packages are necessary to build ib us-hangul.
49 mv ../"${PKG_BASE}"*_*.deb "${OUT_DIR}"
50 rm -f ../"${PKG_BASE}"_*.changes
51 popd
52
53 # Step 2. Build ibus-hangul packages.
54
55 # Remove previous package from output dir
56 PKG_BASE="ibus-hangul"
57 # TODO(yusukes): support ARM.
58 OUT_DIR="$FLAGS_build_root/x86/local_packages"
59 rm -f "${OUT_DIR}/${PKG_BASE}_"*.deb
60
61 # Set up the debian build directory.
62 PKG_BUILD_DIR="${FLAGS_build_root}/${PKG_BASE}"
63 mkdir -p "$PKG_BUILD_DIR"
64 rm -rf "${PKG_BUILD_DIR}/build"
65 cp -rp "${TOP_SCRIPT_DIR}/files" "${PKG_BUILD_DIR}/build"
66 pushd "${PKG_BUILD_DIR}/build"
67 # Apply patches
68 gunzip -c "${TOP_SCRIPT_DIR}/ibus-hangul_1.2.0.20090617-2.diff.gz" | patch -p1
69 cat "${TOP_SCRIPT_DIR}/ibus-hangul_remove_python_deps.diff" | patch -p1
70 chmod u+x ./debian/rules
71
72 # Build the package
73 ./autogen.sh
74 dpkg-buildpackage -b -tc -us -uc
75 mv ../"${PKG_BASE}"_*.deb "${OUT_DIR}"
76 rm -f ../"${PKG_BASE}"_*.changes
77 popd
OLDNEW
« no previous file with comments | « src/third_party/ibus-hangul/libhangul_0.0.10.orig.tar.gz ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698