3 # WinterBoard - Theme Manager for the iPhone
4 # Copyright (C) 2008-2014 Jay Freeman (saurik)
6 # GNU Lesser General Public License, Version 3 {{{ */
8 # WinterBoard is free software: you can redistribute it and/or modify it under
9 # the terms of the GNU Lesser General Public License as published by the
10 # Free Software Foundation, either version 3 of the License, or (at your
11 # option) any later version.
13 # WinterBoard is distributed in the hope that it will be useful, but WITHOUT
14 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
16 # License for more details.
18 # You should have received a copy of the GNU Lesser General Public License
19 # along with WinterBoard. If not, see <http://www.gnu.org/licenses/>.
25 mkdir -p package
/DEBIAN
26 mkdir -p package
/Library
/Themes
27 mkdir -p package
/Library
/MobileSubstrate
/DynamicLibraries
28 mkdir -p package
/Library
/PreferenceLoader
/Preferences
29 mkdir -p package
/System
/Library
/PreferenceBundles
30 mkdir -p package
/usr
/libexec
/winterboard
31 cp -a Optimize package
/usr
/libexec
/winterboard
32 chmod 6755 package
/usr
/libexec
/winterboard
/Optimize
33 cp -a WinterBoardSettings.plist package
/Library
/PreferenceLoader
/Preferences
34 cp -a WinterBoardSettings7.plist package
/Library
/PreferenceLoader
/Preferences
35 cp -a WinterBoardSettings.bundle package
/System
/Library
/PreferenceBundles
36 cp -a Icon
-Small.png package
/System
/Library
/PreferenceBundles
/WinterBoardSettings.bundle
/icon.png
37 cp -a Icon
-Small@
2x.png package
/System
/Library
/PreferenceBundles
/WinterBoardSettings.bundle
/icon@
2x.png
38 cp -a Icon
-Small7.png package
/System
/Library
/PreferenceBundles
/WinterBoardSettings.bundle
/icon7.png
39 cp -a Icon
-Small7@
2x.png package
/System
/Library
/PreferenceBundles
/WinterBoardSettings.bundle
/icon7@
2x.png
40 cp -a Icon
-Small7@
3x.png package
/System
/Library
/PreferenceBundles
/WinterBoardSettings.bundle
/icon7@
3x.png
41 cp -a SearchResultsCheckmarkClear.png WinterBoardSettings package
/System
/Library
/PreferenceBundles
/WinterBoardSettings.bundle
42 cp -a WinterBoard.dylib package
/Library
/MobileSubstrate
/DynamicLibraries
43 cp -a WinterBoard.plist package
/Library
/MobileSubstrate
/DynamicLibraries
44 cp -a *.theme package
/Library
/Themes
45 find package
-name .svn
| while read -r line
; do rm -rf "${line}"; done
46 cp -a extrainst_ preinst prerm package
/DEBIAN
47 sed -e "s/VERSION/$(./version.sh)/g" control
>package
/DEBIAN
/control
49 file="winterboard_$(grep ^Version: package/DEBIAN/control | cut -d ' ' -f 2)_iphoneos-arm.deb"; echo "$file"; ln -sf "$file" winterboard.deb
50 dpkg
-deb -Zlzma -b package winterboard.deb