aboutsummaryrefslogtreecommitdiff
path: root/trunk/mkbuild/generic.mkSlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/mkbuild/generic.mkSlackBuild')
-rw-r--r--trunk/mkbuild/generic.mkSlackBuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/trunk/mkbuild/generic.mkSlackBuild b/trunk/mkbuild/generic.mkSlackBuild
index 021374d..b8e4744 100644
--- a/trunk/mkbuild/generic.mkSlackBuild
+++ b/trunk/mkbuild/generic.mkSlackBuild
@@ -1,7 +1,7 @@
#################################################################
## Generic template for SlackBuilds
##
-## Version 0.9.8 - Luis ( luis at riseup d0t net)
+## Version 0.9.9 - Luis ( luis at riseup d0t net)
## Alves ( rudsonalves at yahoo d0t com d0t br )
#################################################################
#!/bin/bash
@@ -197,6 +197,10 @@ for patch in $patches; do
patch -Np[[NUMBER OF PREFIX SLASHES TO STRIP]] < "$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
+ elif [ -f "$CWD/$patch.gz" ]; then
+ gzip -dc "$CWD/$patch.gz" | patch -Np[[NUMBER OF PREFIX SLASHES TO STRIP]] || exit $ERROR_PATCH
+ elif [ -f "$CWD/patches/$patch.gz" ]; then
+ gzip -dc "$CWD/patches/$patch.gz" | patch -Np[[NUMBER OF PREFIX SLASHES TO STRIP]] || exit $ERROR_PATCH
fi
done