summaryrefslogtreecommitdiff
path: root/data/_apt7/make.sh
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2018-08-15 10:49:31 -1000
committerSam Bingner <sam@bingner.com>2018-08-15 10:49:31 -1000
commit2f8f0c32e83897a3644f0d94bfaf437743e2741b (patch)
tree87038c9a8a49f33db1e3c1a5f4cc38109f4e0de2 /data/_apt7/make.sh
parentaf3c4ce5f8f1a128eaf24d22749df3b7e744e41b (diff)
Update apt7 to 1.4.8 based on nitotv fork and add xz support
Diffstat (limited to 'data/_apt7/make.sh')
-rw-r--r--data/_apt7/make.sh34
1 files changed, 21 insertions, 13 deletions
diff --git a/data/_apt7/make.sh b/data/_apt7/make.sh
index 711fdfb94..03f8b6868 100644
--- a/data/_apt7/make.sh
+++ b/data/_apt7/make.sh
@@ -1,7 +1,24 @@
pkg:setup
-autoconf
-DPKG_ARCH=$(ls -d $(PKG_WORK_ dpkg)/dpkg-*/scripts) pkg:configure --disable-nls
-make
+cat >iphoneos_toolchain.cmake <<EOF
+set(CMAKE_SYSTEM_NAME Darwin) # Tell CMake we're cross-compiling
+set(CMAKE_CROSSCOMPILING true)
+#include(CMakeForceCompiler)
+# Prefix detection only works with compiler id "GNU"
+# CMake will look for prefixed g++, cpp, ld, etc. automatically
+set(CMAKE_SYSTEM_PROCESSOR aarch64)
+set(triple ${PKG_TARG})
+set(CMAKE_FIND_ROOT_PATH $(echo ${PKG_PATH} | sed -e s/:/' '/g))
+set(CMAKE_LIBRARY_PATH $(echo ${LIBRARY_PATH} | sed -e s/:/' '/g))
+set(CMAKE_INCLUDE_PATH $(echo ${INCLUDE_PATH} | sed -e s/:/' '/g))
+set(CMAKE_C_COMPILER ${PKG_TARG}-gcc)
+set(CMAKE_CXX_COMPILER ${PKG_TARG}-g++)
+set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
+set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
+set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
+EOF
+
+cmake -j8 -DCMAKE_TOOLCHAIN_FILE=iphoneos_toolchain.cmake -DCMAKE_LOCALSTATEDIR="/private/var" -DCMAKE_INSTALL_NAME_DIR="/usr/lib" -DCMAKE_INSTALL_RPATH="/usr/" -DCMAKE_OSX_SYSROOT="${PKG_ROOT}" -DCMAKE_INSTALL_PREFIX="/usr/" -DCMAKE_SHARED_LINKER_FLAGS="-lresolv" -DCURRENT_VENDOR=debian -DUSE_NLS=0 -DWITH_DOC=0 -DCOMMON_ARCH=${PKG_ARCH} .
+make -j16
pkg: mkdir -p /etc/apt/apt.conf.d
pkg: mkdir -p /etc/apt/preferences.d
@@ -12,13 +29,4 @@ pkg: mkdir -p /var/lib/apt/lists/partial
pkg: mkdir -p /var/lib/apt/periodic
pkg: mkdir -p /var/log/apt
-pkg: mkdir -p /usr/bin /usr/lib/apt
-pkg: cp -a bin/apt-* /usr/bin
-pkg: cp -a bin/libapt-* /usr/lib
-pkg: cp -a bin/methods /usr/lib/apt
-
-pkg: mkdir -p /usr/lib/dpkg/methods
-pkg: cp -a scripts/dselect /usr/lib/dpkg/methods/apt
-
-pkg: mkdir -p /usr/include
-pkg: cp -a include/apt-pkg /usr/include
+pkg:install