[Defy Themes and Apps] androidtester80:
New version

New version of the script:

- removed unnecessary busybox, the flashable zip file is smaller now

- added new files to delete list, including fonts and camera click sound

Tested on cm-11-20140723-NIGHTLY-mb526

Complete list of deleted files:

bootanimation

system/media/bootanimation.zip

camera click

system/media/audio/ui/camera_click.ogg

alarms

system/media/audio/alarms/CyanAlarm.ogg
system/media/audio/alarms/Alarm_Rooster_02.ogg
system/media/audio/alarms/Argon.ogg
system/media/audio/alarms/Barium.ogg
system/media/audio/alarms/Cesium.ogg
system/media/audio/alarms/Hassium.ogg
system/media/audio/alarms/Neptunium.ogg
system/media/audio/alarms/Nobelium.ogg
system/media/audio/alarms/NuclearLaunch.ogg
system/media/audio/alarms/Osmium.ogg
system/media/audio/alarms/Platinum.ogg
system/media/audio/alarms/Plutonium.ogg
system/media/audio/alarms/Scandium.ogg

notifications

system/media/audio/notifications/Adara.ogg
system/media/audio/notifications/Aldebaran.ogg
system/media/audio/notifications/Altair.ogg
system/media/audio/notifications/Alya.ogg
system/media/audio/notifications/Antares.ogg
system/media/audio/notifications/Antimony.ogg
system/media/audio/notifications/Arcturus.ogg
system/media/audio/notifications/Argon.ogg
system/media/audio/notifications/Beat_Box_Android.ogg
system/media/audio/notifications/Beryllium.ogg
system/media/audio/notifications/Betelgeuse.ogg
system/media/audio/notifications/CaffeineSnake.ogg
system/media/audio/notifications/Canopus.ogg
system/media/audio/notifications/Capella.ogg
system/media/audio/notifications/Castor.ogg
system/media/audio/notifications/CetiAlpha.ogg
system/media/audio/notifications/Cobalt.ogg
system/media/audio/notifications/Cricket.ogg
system/media/audio/notifications/DearDeer.ogg
system/media/audio/notifications/Deneb.ogg
system/media/audio/notifications/Doink.ogg
system/media/audio/notifications/DontPanic.ogg
system/media/audio/notifications/Drip.ogg
system/media/audio/notifications/Electra.ogg
system/media/audio/notifications/F1_MissedCall.ogg
system/media/audio/notifications/F1_New_MMS.ogg
system/media/audio/notifications/F1_New_SMS.ogg
system/media/audio/notifications/Fluorine.ogg
system/media/audio/notifications/Fomalhaut.ogg
system/media/audio/notifications/Gallium.ogg
system/media/audio/notifications/Heaven.ogg
system/media/audio/notifications/Helium.ogg
system/media/audio/notifications/Highwire.ogg
system/media/audio/notifications/Hojus.ogg
system/media/audio/notifications/Iridium.ogg
system/media/audio/notifications/Krypton.ogg
system/media/audio/notifications/KzurbSonar.ogg
system/media/audio/notifications/Lalande.ogg
system/media/audio/notifications/Laser.ogg
system/media/audio/notifications/Merope.ogg
system/media/audio/notifications/Mira.ogg
system/media/audio/notifications/moonbeam.ogg
system/media/audio/notifications/Naughty.ogg
system/media/audio/notifications/Palladium.ogg
system/media/audio/notifications/pixiedust.ogg
system/media/audio/notifications/pizzicato.ogg
system/media/audio/notifications/Plastic_Pipe.ogg
system/media/audio/notifications/Polaris.ogg
system/media/audio/notifications/Pollux.ogg
system/media/audio/notifications/Pong.ogg
system/media/audio/notifications/Procyon.ogg
system/media/audio/notifications/Proxima.ogg
system/media/audio/notifications/Radon.ogg
system/media/audio/notifications/Rang.ogg
system/media/audio/notifications/regulus.ogg
system/media/audio/notifications/Rubidium.ogg
system/media/audio/notifications/Selenium.ogg
system/media/audio/notifications/Shaula.ogg
system/media/audio/notifications/sirius.ogg
system/media/audio/notifications/SpaceSeed.ogg
system/media/audio/notifications/Spica.ogg
system/media/audio/notifications/Stone.ogg
system/media/audio/notifications/Strontium.ogg
system/media/audio/notifications/Syrma.ogg
system/media/audio/notifications/TaDa.ogg
system/media/audio/notifications/Talitha.ogg
system/media/audio/notifications/Tejat.ogg
system/media/audio/notifications/Thallium.ogg
system/media/audio/notifications/Tinkerbell.ogg
system/media/audio/notifications/tweeters.ogg
system/media/audio/notifications/Upsilon.ogg
system/media/audio/notifications/Vega.ogg
system/media/audio/notifications/Voila.ogg
system/media/audio/notifications/Xenon.ogg
system/media/audio/notifications/Zirconium.ogg

ringtones

system/media/audio/ringtones/Andromeda.ogg
system/media/audio/ringtones/Aquila.ogg
system/media/audio/ringtones/ArgoNavis.ogg
system/media/audio/ringtones/Atria.ogg
system/media/audio/ringtones/Backroad.ogg
system/media/audio/ringtones/BeatPlucker.ogg
system/media/audio/ringtones/BentleyDubs.ogg
system/media/audio/ringtones/Big_Easy.ogg
system/media/audio/ringtones/BirdLoop.ogg
system/media/audio/ringtones/Bollywood.ogg
system/media/audio/ringtones/BOOTES.ogg
system/media/audio/ringtones/Boxbeat.ogg
system/media/audio/ringtones/BussaMove.ogg
system/media/audio/ringtones/Cairo.ogg
system/media/audio/ringtones/Calypso_Steel.ogg
system/media/audio/ringtones/CanisMajor.ogg
system/media/audio/ringtones/CaribbeanIce.ogg
system/media/audio/ringtones/Carina.ogg
system/media/audio/ringtones/CASSIOPEIA.ogg
system/media/audio/ringtones/Centaurus.ogg
system/media/audio/ringtones/Champagne_Edition.ogg
system/media/audio/ringtones/Club_Cubano.ogg
system/media/audio/ringtones/CrayonRock.ogg
system/media/audio/ringtones/CrazyDream.ogg
system/media/audio/ringtones/CurveBall.ogg
system/media/audio/ringtones/CyanTone.ogg
system/media/audio/ringtones/Cygnus.ogg
system/media/audio/ringtones/DancinFool.ogg
system/media/audio/ringtones/Ding.ogg
system/media/audio/ringtones/DonMessWivIt.ogg
system/media/audio/ringtones/Draco.ogg
system/media/audio/ringtones/DreamTheme.ogg
system/media/audio/ringtones/Eastern_Sky.ogg
system/media/audio/ringtones/Enter_the_Nexus.ogg
system/media/audio/ringtones/Eridani.ogg
system/media/audio/ringtones/EtherShake.ogg
system/media/audio/ringtones/FreeFlight.ogg
system/media/audio/ringtones/FriendlyGhost.ogg
system/media/audio/ringtones/Funk_Yall.ogg
system/media/audio/ringtones/GameOverGuitar.ogg
system/media/audio/ringtones/Gimme_Mo_Town.ogg
system/media/audio/ringtones/Girtab.ogg
system/media/audio/ringtones/Glacial_Groove.ogg
system/media/audio/ringtones/Growl.ogg
system/media/audio/ringtones/HalfwayHome.ogg
system/media/audio/ringtones/Highscore.ogg
system/media/audio/ringtones/Hydra.ogg
system/media/audio/ringtones/InsertCoin.ogg
system/media/audio/ringtones/Kuma.ogg
system/media/audio/ringtones/LoopyLounge.ogg
system/media/audio/ringtones/LoveFlute.ogg
system/media/audio/ringtones/Lyon.ogg
system/media/audio/ringtones/Lyra.ogg
system/media/audio/ringtones/Machina.ogg
system/media/audio/ringtones/MidEvilJaunt.ogg
system/media/audio/ringtones/MildlyAlarming.ogg
system/media/audio/ringtones/Nairobi.ogg
system/media/audio/ringtones/Nassau.ogg
system/media/audio/ringtones/NewPlayer.ogg
system/media/audio/ringtones/No_Limits.ogg
system/media/audio/ringtones/Noises1.ogg
system/media/audio/ringtones/Noises2.ogg
system/media/audio/ringtones/Noises3.ogg
system/media/audio/ringtones/OrganDub.ogg
system/media/audio/ringtones/Orion.ogg
system/media/audio/ringtones/Paradise_Island.ogg
system/media/audio/ringtones/Pegasus.ogg
system/media/audio/ringtones/Perseus.ogg
system/media/audio/ringtones/Playa.ogg
system/media/audio/ringtones/Pyxis.ogg
system/media/audio/ringtones/Rasalas.ogg
system/media/audio/ringtones/Revelation.ogg
system/media/audio/ringtones/Rigel.ogg
system/media/audio/ringtones/Ring_Classic_02.ogg
system/media/audio/ringtones/Ring_Digital_02.ogg
system/media/audio/ringtones/Ring_Synth_02.ogg
system/media/audio/ringtones/Ring_Synth_04.ogg
system/media/audio/ringtones/Road_Trip.ogg
system/media/audio/ringtones/Rockin.ogg
system/media/audio/ringtones/RomancingTheTone.ogg
system/media/audio/ringtones/Safari.ogg
system/media/audio/ringtones/Savannah.ogg
system/media/audio/ringtones/Scarabaeus.ogg
system/media/audio/ringtones/Sceptrum.ogg
system/media/audio/ringtones/Seville.ogg
system/media/audio/ringtones/Sheep.mp3
system/media/audio/ringtones/Shes_All_That.ogg
system/media/audio/ringtones/SilkyWay.ogg
system/media/audio/ringtones/SitarVsSitar.ogg
system/media/audio/ringtones/Solarium.ogg
system/media/audio/ringtones/SpringyJalopy.ogg
system/media/audio/ringtones/Steppin_Out.ogg
system/media/audio/ringtones/Terminated.ogg
system/media/audio/ringtones/Testudo.ogg
system/media/audio/ringtones/Themos.ogg
system/media/audio/ringtones/Third_Eye.ogg
system/media/audio/ringtones/Thunderfoot.ogg
system/media/audio/ringtones/TwirlAway.ogg
system/media/audio/ringtones/UrsaMinor.ogg
system/media/audio/ringtones/VeryAlarmed.ogg
system/media/audio/ringtones/Vespa.ogg
system/media/audio/ringtones/World.ogg
system/media/audio/ringtones/Zeta.ogg

Apps

system/app/Apollo.apk
system/app/BasicDreams.apk
system/app/Calculator.apk
system/app/Calendar.apk
system/app/CellBroadcastReceiver.apk
system/app/CMHome.apk
system/app/DeskClock.apk
system/app/DSPManager.apk
system/app/Email.apk
system/app/Exchange2.apk
system/app/LiveWallpapers.apk
system/app/LiveWallpapersPicker.apk
system/app/LockClock.apk
system/app/PhotoPhase.apk
system/app/PhotoTable.apk
system/app/SoundRecorder.apk
system/app/Stk.apk
system/app/Term.apk
system/app/UserDictionaryProvider.apk
system/app/VisualizationWallpapers.apk
system/app/VoicePlus.apk
system/app/WhisperPush.apk
system/priv-app/BackupRestoreConfirmation.apk
system/priv-app/CalendarProvider.apk
system/priv-app/CMAccount.apk
system/priv-app/CMS.apk
system/priv-app/CMUpdater.apk
system/priv-app/OneTimeInitializer.apk
system/priv-app/PicoTts.apk
system/priv-app/SetupWizard.apk
system/priv-app/Shell.apk
system/priv-app/ThemeChooser.apk
system/priv-app/ThemesProvider.apk
system/priv-app/VoiceDialer.apk
system/priv-app/WallpaperCropper.apk

Fonts

system/fonts/DroidNaskh-Regular.ttf
system/fonts/DroidNaskhUI-Regular.ttf
system/fonts/DroidSansArmenian.ttf
system/fonts/DroidSansEthiopic-Regular.ttf
system/fonts/DroidSansFallback.ttf
system/fonts/DroidSansGeorgian.ttf
system/fonts/DroidSansHebrew-Bold.ttf
system/fonts/DroidSansHebrew-Regular.ttf
system/fonts/LBha****aComplexSans-Bold.ttf
system/fonts/LBha****aComplexSans-Regular.ttf
system/fonts/MTLmr3m.ttf
system/fonts/NanumGothic.ttf
system/fonts/NotoColorEmoji.ttf
system/fonts/NotoSansBengali-Bold.ttf
system/fonts/NotoSansBengali-Regular.ttf
system/fonts/NotoSansBengaliUI-Bold.ttf
system/fonts/NotoSansBengaliUI-Regular.ttf
system/fonts/NotoSansDevanagari-Bold.ttf
system/fonts/NotoSansDevanagari-Regular.ttf
system/fonts/NotoSansDevanagariUI-Bold.ttf
system/fonts/NotoSansDevanagariUI-Regular.ttf
system/fonts/NotoSansKannada-Bold.ttf
system/fonts/NotoSansKannada-Regular.ttf
system/fonts/NotoSansKannadaUI-Bold.ttf
system/fonts/NotoSansKannadaUI-Regular.ttf
system/fonts/NotoSansKhmer-Bold.ttf
system/fonts/NotoSansKhmer-Regular.ttf
system/fonts/NotoSansKhmerUI-Bold.ttf
system/fonts/NotoSansKhmerUI-Regular.ttf
system/fonts/NotoSansLao-Bold.ttf
system/fonts/NotoSansLao-Regular.ttf
system/fonts/NotoSansLaoUI-Bold.ttf
system/fonts/NotoSansLaoUI-Regular.ttf
system/fonts/NotoSansMalayalam-Bold.ttf
system/fonts/NotoSansMalayalam-Regular.ttf
system/fonts/NotoSansMalayalamUI-Bold.ttf
system/fonts/NotoSansMalayalamUI-Regular.ttf
system/fonts/NotoSansSymbols-Regular.ttf
system/fonts/NotoSansTamil-Bold.ttf
system/fonts/NotoSansTamil-Regular.ttf
system/fonts/NotoSansTamilUI-Bold.ttf
system/fonts/NotoSansTamilUI-Regular.ttf
system/fonts/NotoSansTelugu-Bold.ttf
system/fonts/NotoSansTelugu-Regular.ttf
system/fonts/NotoSansTeluguUI-Bold.ttf
system/fonts/NotoSansTeluguUI-Regular.ttf
system/fonts/NotoSansThai-Bold.ttf
system/fonts/NotoSansThai-Regular.ttf
system/fonts/NotoSansThaiUI-Bold.ttf
system/fonts/NotoSansThaiUI-Regular.ttf
system/fonts/Padauk-book.ttf
system/fonts/Padauk-bookbold.ttf

Bootanimation is no longer present in latest builds, so the line can be removed.