diff options
author | luis <luis@370017ae-e619-0410-ac65-c121f96126d4> | 2007-12-02 01:12:17 +0000 |
---|---|---|
committer | luis <luis@370017ae-e619-0410-ac65-c121f96126d4> | 2007-12-02 01:12:17 +0000 |
commit | ca274f16c2f8befb15159fa42455e10019d330c2 (patch) | |
tree | 2532e4cf6b294d28ce7ef2c2b3823dd1699d6c01 /sys/apps/microcode_ctl | |
parent | 8910e177f2f2cfffa0b2d3ba2814c030d2860aea (diff) | |
download | slackbuilds-ca274f16c2f8befb15159fa42455e10019d330c2.tar.gz slackbuilds-ca274f16c2f8befb15159fa42455e10019d330c2.tar.bz2 |
Syncing with generic.SlackBuild v0.9.1
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1483 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'sys/apps/microcode_ctl')
-rwxr-xr-x | sys/apps/microcode_ctl/microcode_ctl.SlackBuild | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/apps/microcode_ctl/microcode_ctl.SlackBuild b/sys/apps/microcode_ctl/microcode_ctl.SlackBuild index 87db5346..44c1e3a5 100755 --- a/sys/apps/microcode_ctl/microcode_ctl.SlackBuild +++ b/sys/apps/microcode_ctl/microcode_ctl.SlackBuild @@ -41,7 +41,7 @@ TMP=${TMP:=/tmp} PKG=${PKG:=$TMP/package-$PKG_NAME} REPOS=${REPOS:=$TMP} PREFIX=${PREFIX:=/usr} -PKG_SRC="$TMP/$SRC_NAME-$SRC_VERSION" +PKG_WORK="$TMP/$SRC_NAME" CONF_OPTIONS=${CONF_OPTIONS:=} NUMJOBS=${NUMJOBS:=-j3} @@ -52,13 +52,14 @@ ERROR_TAR=37; ERROR_MKPKG=38; ERROR_GPG=39 ERROR_PATCH=40; ERROR_VCS=41; ERROR_MKDIR=42 # Clean up any leftovers of previous builds -rm -rf "$PKG_SRC" 2> /dev/null +rm -rf "$PKG_WORK" 2> /dev/null rm -rf "$PKG" 2> /dev/null # Create directories if necessary 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 # Dowload source if necessary SRC="$SRC_NAME-$SRC_VERSION.tar.gz" @@ -69,8 +70,9 @@ if [ ! -s "$SRC_DIR/$SRC" ] || ! gzip -t "$SRC_DIR/$SRC" 2> /dev/null; then fi # Untar -cd "$TMP" +cd "$PKG_WORK" tar --no-same-owner --no-same-permissions -xvf "$SRC_DIR/$SRC" || exit $ERROR_TAR +PKG_SRC=`ls -l | awk '/^d/ { print $8 }'` cd "$PKG_SRC" # Compile |