]>
code.delx.au - monosys/blob - scripts/custom-ubuntu-desktop
34d1acd77893235ba8190892bd34338bcacf26eb
4 PACKAGE_NAME
="ubuntu-desktop-custom"
5 PACKAGE_VERSION
="1.0.$(date +%Y-%m-%d.%H-%M)"
21 gnome-session-fallback
30 language-pack-gnome-en
59 activity-log-manager-control-center
60 app-install-data-partner
68 gnome-session-canberra
73 ibus-pinyin-db-android
77 landscape-client-ui-install
82 rhythmbox-plugin-magnatune
85 software-properties-gtk
88 thunderbird-gnome-support
91 ubuntuone-client-gnome
105 if [ "$(lsb_release -r | cut -d ':' -f 2 | tr -d ' ')" != "$RELEASE" ]; then
106 echo "Sorry, at the moment this script only supports Ubuntu $RELEASE"
110 if ! grep -q universe
/etc
/apt
/sources.list
/etc
/apt
/sources.list.d
/*.list
; then
111 echo "You must enable universe in your apt sources.list"
115 if ! grep -q multiverse
/etc
/apt
/sources.list
/etc
/apt
/sources.list.d
/*.list
; then
116 echo "You must enable multiverse in your apt sources.list"
120 if ! which equivs-build
> /dev
/null
; then
121 sudo apt-get
install equivs
126 ##########################
127 # Build the control file #
128 ##########################
130 CONTROLFILE
="$(tempfile)"
131 echo "-- Writing control file to $CONTROLFILE"
133 cat > "$CONTROLFILE" <<EOT
134 Package: $PACKAGE_NAME
135 Section: metapackages
137 Standards-Version: 3.9.2
138 Conflicts: ubuntu-desktop
139 Replaces: ubuntu-desktop
141 Version: $PACKAGE_VERSION
142 Description: Customised Ubuntu desktop system
143 Similar to ubuntu-desktop, but with some additions and removals.
147 line
="$(apt-cache show ubuntu-desktop | grep "$1:")"
148 for pkg
in $EXCLUDE; do
149 line
="$(echo "$line" | sed -e "s
/$pkg, //" -e "s
/, $pkg\$
//")"
158 echo ", $(echo $DEPENDS | sed 's/ /, /g')"
160 get_line
'Recommends'
169 echo "-- Building .deb in working directory"
170 equivs-build
"$CONTROLFILE"
179 sudo aptitude
install $DEPENDS
180 sudo dpkg
-i "${PACKAGE_NAME}_${PACKAGE_VERSION}_all.deb"
181 sudo aptitude purge
$EXCLUDE