summaryrefslogtreecommitdiff
path: root/make.sh
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-01-22 14:31:27 +0000
committerJay Freeman <saurik@saurik.com>2008-01-22 14:31:27 +0000
commit553360b2ff0e9e48b7aff9eadeb0adbadf6c2bbc (patch)
tree5975f0d0798e19c3dad4be25df32281f52aee431 /make.sh
parentc90399edf5edcc1f151c1c33d66f123e17172cb7 (diff)
Override uname in PATH for easier autoconf, update Origin fields to include saurik's full name, filter packages before passing to dpkg-scanpackages (to verify correct version is indexed), handle a few escaping mistakes in the make.sh directory logic, and re-enabled nls support during pkg:configure.
git-svn-id: http://svn.telesphoreo.org/trunk@31 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'make.sh')
-rwxr-xr-xmake.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/make.sh b/make.sh
index 2e1b8aa5d..bf7212d54 100755
--- a/make.sh
+++ b/make.sh
@@ -11,6 +11,7 @@ export PKG_MAKE=$0
export PKG_NAME=${1%_}
export PKG_BASE=$(realpath "$(dirname "$0")")
+export PATH=${PKG_BASE}/util:$PATH
. "${PKG_BASE}/helper.sh"
for dep in "${PKG_DEPS[@]}"; do
@@ -42,6 +43,10 @@ mkdir "${PKG_DEST}"
rm -rf "${PKG_WORK}"
mkdir "${PKG_WORK}"
+function PKG_DATA_() {
+ echo "${PKG_BASE}/data/$1"
+}
+
function PKG_WORK_() {
echo "${PKG_BASE}/work/$1"
}
@@ -78,7 +83,6 @@ function pkg:configure() {
PKG_CONFIG_PATH=${PKG_ROOT}/usr/lib/pkgconfig \
"${PKG_CONF}" \
--host=arm-apple-darwin \
- --disable-nls \
--enable-static=no \
--enable-shared=yes \
--prefix=/usr \
@@ -94,7 +98,7 @@ function pkg_ {
case "${1:0:1}" in
(/) echo "${PKG_DEST}$1";;
(%) echo "${PKG_DATA}${1:1}";;
- (*) echo "$1";;
+ (*) echo -"$1" | sed -e 's/^.//';;
esac
}
@@ -103,7 +107,7 @@ function pkg: {
declare argc=$#
for ((i=0; $i != $argc; ++i)); do
- argv[$i]=$(pkg_ $1)
+ argv[$i]=$(pkg_ "$1")
shift
done