summaryrefslogtreecommitdiff
path: root/system/dash/dash.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/dash/dash.SlackBuild')
-rw-r--r--system/dash/dash.SlackBuild12
1 files changed, 11 insertions, 1 deletions
diff --git a/system/dash/dash.SlackBuild b/system/dash/dash.SlackBuild
index 47b9200929..f0c362a7d5 100644
--- a/system/dash/dash.SlackBuild
+++ b/system/dash/dash.SlackBuild
@@ -5,9 +5,11 @@
# Written by Vincent Batts, http://hashbangbash.com/
PRGNAM=dash
-VERSION=${VERSION:-0.5.6.1}
+VERSION=${VERSION:-0.5.8}
+_PATCH_VERS=${PATCH_VERS:-git_d7582e6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+USE_GIT_PATCH=${USE_GIT_PATCH:-no}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -44,6 +46,14 @@ cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
+
+# add fixes from upstream devel, if requested
+if [ "$USE_GIT_PATCH" = "yes" ] && \
+ [ -f $CWD/patches/dash-${VERSION}-${_PATCH_VERS}.diff ]; then
+ patch -p1 < $CWD/patches/dash-${VERSION}-${_PATCH_VERS}.diff
+ VERSION="${VERSION}.${_PATCH_VERS}"
+fi
+
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \