]>
code.delx.au - monosys/blob - scripts/custom-ubuntu-desktop
4 PACKAGE_NAME
="ubuntu-desktop-custom"
5 PACKAGE_VERSION
="1.0.$(date +%Y-%m-%d.%H-%M)"
17 gnome-session-fallback
43 language-pack-gnome-en
60 activity-log-manager-control-center
61 app-install-data-partner
69 gnome-session-canberra
74 ibus-pinyin-db-android
78 landscape-client-ui-install
83 rhythmbox-plugin-magnatune
86 software-properties-gtk
89 thunderbird-gnome-support
92 ubuntuone-client-gnome
106 if [ "$(lsb_release -r | cut -d ':' -f 2 | tr -d ' ')" != "$RELEASE" ]; then
107 echo "Sorry, at the moment this script only supports Ubuntu $RELEASE"
111 if ! grep -q universe
/etc
/apt
/sources.list
/etc
/apt
/sources.list.d
/*.list
; then
112 echo "You must enable universe in your apt sources.list"
116 if ! grep -q multiverse
/etc
/apt
/sources.list
/etc
/apt
/sources.list.d
/*.list
; then
117 echo "You must enable multiverse in your apt sources.list"
121 if ! which equivs-build
> /dev
/null
; then
122 sudo apt-get
install equivs
127 ##########################
128 # Build the control file #
129 ##########################
131 CONTROLFILE
="$(tempfile)"
132 echo "-- Writing control file to $CONTROLFILE"
134 cat > "$CONTROLFILE" <<EOT
135 Package: $PACKAGE_NAME
136 Section: metapackages
138 Standards-Version: 3.9.2
139 Conflicts: ubuntu-desktop
140 Replaces: ubuntu-desktop
142 Version: $PACKAGE_VERSION
143 Description: Customised Ubuntu desktop system
144 Similar to ubuntu-desktop, but with some additions and removals.
148 line
="$(apt-cache show ubuntu-desktop | grep "$1:")"
149 for pkg
in $EXCLUDE; do
150 line
="$(echo "$line" | sed -e "s
/$pkg, //" -e "s
/, $pkg\$
//")"
159 echo ", $(echo $DEPENDS | sed 's/ /, /g')"
161 get_line
'Recommends'
170 echo "-- Building .deb in working directory"
171 equivs-build
"$CONTROLFILE"
180 sudo aptitude
install $DEPENDS
181 sudo dpkg
-i "${PACKAGE_NAME}_${PACKAGE_VERSION}_all.deb"
182 sudo aptitude purge
$REMOVE