]> git.saurik.com Git - ldid.git/commitdiff
Add a build environment for iOS+Cydia packaging.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 7 Sep 2012 02:10:28 +0000 (19:10 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 7 Sep 2012 02:11:03 +0000 (19:11 -0700)
.gitignore
control [new file with mode: 0644]
control.sh [new file with mode: 0755]
ios.sh [new file with mode: 0755]
make.sh
version.sh [new file with mode: 0755]

index d2eb36936d5d635ddd6db1730fbb1ffe0c817cc3..95d51d9c6442266b9196af1bed969e1d411772b9 100644 (file)
@@ -1 +1,5 @@
 ldid
+ldid.arm
+ldid.deb
+debs
+_
diff --git a/control b/control
new file mode 100644 (file)
index 0000000..06616b2
--- /dev/null
+++ b/control
@@ -0,0 +1,12 @@
+Package: ldid
+Priority: optional
+Section: Development
+Maintainer: Jay Freeman (saurik) <saurik@saurik.com>
+Architecture: iphoneos-arm
+Version: 
+Description: psuedo-codesign Mach-O files
+Name: Link Identity Editor
+Author: Jay Freeman (saurik) <saurik@saurik.com>
+Depiction: http://cydia.saurik.com/info/ldid/
+Depends: odcctools
+Tag: purpose::console, role::developer
diff --git a/control.sh b/control.sh
new file mode 100755 (executable)
index 0000000..7a11d56
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+dir=$1
+dir=${dir:=_}
+sed -e "s@^\(Version:.*\)@\1$(./version.sh)@" control
+echo "Installed-Size: $(du -s "${dir}" | cut -f 1)"
diff --git a/ios.sh b/ios.sh
new file mode 100755 (executable)
index 0000000..43e60d0
--- /dev/null
+++ b/ios.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+set -e -x
+
+cycc -i2.0 -m10.5 -oldid.arm -- ldid.cpp sha1.c -x c lookup2.c -I .
+
+rm -rf _
+mkdir -p _/usr/bin
+cp -a ldid.arm _/usr/bin
+mkdir -p _/DEBIAN
+./control.sh _ >_/DEBIAN/control
+mkdir -p debs
+ln -sf debs/ldid_$(./version.sh)_iphoneos-arm.deb ldid.deb
+dpkg-deb -b _ ldid.deb
+readlink ldid.deb
diff --git a/make.sh b/make.sh
index f1f2a8175c9e9fb1a9194b336347a9746d294b82..67122091c91f05a7c8aa3695f8ffe339afd3c2ca 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-set -e -x
+set -e
 
 flags=()
 
diff --git a/version.sh b/version.sh
new file mode 100755 (executable)
index 0000000..6e484ed
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/bash
+echo "$(git describe --tags --dirty="+" --match="v*" | sed -e 's@-\([^-]*\)-\([^-]*\)$@+\1.\2@;s@^v@1:@')"