]>
git.saurik.com Git - cydia.git/blob - sysroot.sh
a124baa30d1cff189f27e032b0ca7474bfb02e97
5 if [[ ${BASH_VERSION} != 4* ]]; then
6 echo "bash 4.0 required" 1>&2
16 for command in unlzma wget
; do
17 if ! which "${command}" &>/dev
/null
; then
18 echo "Cannot run \`${command}\`. Please read compiling.txt." 1>&2
23 if tar --help | grep bsdtar
&>/dev
/null
; then
24 echo "Running \`tar\` is bsdtar :(. Please read compiling.txt." 1>&2
28 xcode
=$(xcodebuild -sdk macosx -version Path)
34 repository
=http
://apt.saurik.com
/
37 architecture
=iphoneos
-arm
47 wget
-O "${package}.deb" "${url}"
49 compressed
=data.
tar.
${z}
51 if ar -x "${package}.deb" "${compressed}" 2>/dev
/null
; then
52 ${dpkgz[${z}]} "${compressed}"
57 if ! [[ -e data.
tar ]]; then
58 echo "unable to extract package" 1>&2
69 urls
[coreutils
]=http
://apt.saurik.com
/debs
/coreutils_7.4
-11_iphoneos-arm.deb
72 wget
-qO- "${repository}dists/${distribution}/${component}/binary-${architecture}/Packages.bz2" | bzcat
| {
73 regex
='^([^ \t]*): *(.*)'
76 while IFS
= read -r line
; do
77 if [[ ${line} == '' ]]; then
78 package
=${fields[package]}
79 if [[ -n ${urls[${package}]} ]]; then
80 filename
=${fields[filename]}
81 urls
[${package}]=${repository}${filename}
86 elif [[ ${line} =~
${regex} ]]; then
87 name
=${BASH_REMATCH[1],,}
88 value
=${BASH_REMATCH[2]}
89 fields
[${name}]=${value}
95 for package
in "${!urls[@]}"; do
96 extract
"${package}" "${urls[${package}]}"
105 wget
--no-check-certificate -O CoreFoundation
/CFUniChar.h
"https://opensource.apple.com/source/CF/CF-550/CFUniChar.h"
108 wget
--no-check-certificate -O WebCore
/WebCoreThread.h
"https://opensource.apple.com/source/WebCore/WebCore-658.28/wak/WebCoreThread.h"
110 ln -s /System
/Library
/Frameworks
/IOKit.framework
/Headers IOKit