aboutsummaryrefslogtreecommitdiff
path: root/trunk/mkbuild
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-11-28 17:45:12 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-11-28 17:45:12 +0000
commit495caf5275e115675b553f641586813d0068c158 (patch)
treead957c6b6eca01bc8074620c988ccc7f6a644d90 /trunk/mkbuild
parent96c62a78b61d993eaeae2ca136085bffc2c5fc7c (diff)
downloadsimplepkg-495caf5275e115675b553f641586813d0068c158.tar.gz
simplepkg-495caf5275e115675b553f641586813d0068c158.tar.bz2
updated perl.mkSlackBuild with generic.mkSlackBuild changes
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@459 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'trunk/mkbuild')
-rw-r--r--trunk/mkbuild/perl.mkSlackBuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/trunk/mkbuild/perl.mkSlackBuild b/trunk/mkbuild/perl.mkSlackBuild
index 592dbe6..0192ed5 100644
--- a/trunk/mkbuild/perl.mkSlackBuild
+++ b/trunk/mkbuild/perl.mkSlackBuild
@@ -52,7 +52,7 @@ TMP=${TMP:=/tmp}
PKG=${PKG:=$TMP/package-$PKG_NAME}
REPOS=${REPOS:=$TMP}
PREFIX=${PREFIX:=[[PREFIX]]}
-PKG_SRC="$TMP/$SRC_NAME-$SRC_VERSION"
+PKG_WORK="$TMP/$SRC_NAME"
CONF_OPTIONS=${CONF_OPTIONS:="[[OTHER CONFIGURE ARGS]]"}
NUMJOBS=${NUMJOBS:="[[NUMBER OF JOBS]]"}
</set_variables>
@@ -92,6 +92,7 @@ rm -rf "$PKG" 2> /dev/null
mkdir -p "$SRC_DIR" || exit $ERROR_MKDIR
mkdir -p "$PKG" || exit $ERROR_MKDIR
mkdir -p "$REPOS" || exit $ERROR_MKDIR
+mkdir -p "$PKG_WORK" || exit $ERROR_MKDIR
</start_structure>
<download_source> off
@@ -140,8 +141,9 @@ gpg --verify "$SRC_DIR/$SRC.sig" "$SRC_DIR/$SRC" || exit $ERROR_GPG
<untar_source> off
# Untar
-cd "$TMP"
+cd "$PKG_WORK"
[[UNPACKER]] [[UNPACKER FLAGS]] "$SRC_DIR/$SRC" || exit $ERROR_TAR
+PKG_SRC=`ls -l | awk '/^d/ { print $8 }'`
cd "$PKG_SRC"
</untar_source>