From 0a7f52b2cbfa98e231f3c0de07aa051a4fdecd9e Mon Sep 17 00:00:00 2001 From: rhatto Date: Thu, 13 Sep 2007 18:21:19 +0000 Subject: cdk: small fixes git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1377 370017ae-e619-0410-ac65-c121f96126d4 --- dev/libs/cdk/cdk.SlackBuild | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dev/libs/cdk/cdk.SlackBuild') diff --git a/dev/libs/cdk/cdk.SlackBuild b/dev/libs/cdk/cdk.SlackBuild index dcd31f85..8a6ff95d 100755 --- a/dev/libs/cdk/cdk.SlackBuild +++ b/dev/libs/cdk/cdk.SlackBuild @@ -86,7 +86,7 @@ fi # Untar cd "$TMP" tar --no-same-owner --no-same-permissions -xvf "$SRC_DIR/$SRC" || exit $ERROR_TAR -cd "$PKG_SRC" +cd "$TMP/$SRC_NAME-$SRC_VERSION.orig" # Patch source patches="[[PATCH FILES]] @@ -94,9 +94,9 @@ patches="[[PATCH FILES]] $PKG_NAME-$PKG_VERSION-$ARCH.diff $PKG_NAME-$ARCH.diff" for patch in $patches; do if [ -f "$CWD/$patch" ]; then - patch -Np[[NUMBER OF PREFIX SLASHES TO STRIP]] < "$CWD/$patch" || exit $ERROR_PATCH + patch -Np1 < "$CWD/$patch" || exit $ERROR_PATCH elif [ -f "$CWD/patches/$patch" ]; then - patch -Np[[NUMBER OF PREFIX SLASHES TO STRIP]] < "$CWD/patches/$patch" || exit $ERROR_PATCH + patch -Np1 < "$CWD/patches/$patch" || exit $ERROR_PATCH fi done -- cgit v1.2.3