summaryrefslogtreecommitdiffstats
path: root/sigil
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2011-08-27 10:14:50 +0000
committer Eric Hameleers <alien@slackware.com>2011-08-27 10:14:50 +0000
commit507dab0eb247c2f512aaabdd6bcdb8c9222d33d2 (patch)
tree7874192226a9aa94b6a26260a187d11c9b59ef70 /sigil
parent4344e2b04dd98dff25eb6ae41df7a047acb87707 (diff)
downloadasb-507dab0eb247c2f512aaabdd6bcdb8c9222d33d2.tar.gz
asb-507dab0eb247c2f512aaabdd6bcdb8c9222d33d2.tar.xz
Compensate for missing directory inside the tarball
Diffstat (limited to 'sigil')
-rwxr-xr-xsigil/build/sigil.SlackBuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/sigil/build/sigil.SlackBuild b/sigil/build/sigil.SlackBuild
index 2c953272..4645fec0 100755
--- a/sigil/build/sigil.SlackBuild
+++ b/sigil/build/sigil.SlackBuild
@@ -141,9 +141,12 @@ echo "|| $PRGNAM-$VERSION"
echo "++"
cd $TMP/tmp-$PRGNAM
+# The 0.4.1 source tarball did not have a toplevel directory, so I compensate:
+mkdir $PRGNAM-$VERSION
+cd $PRGNAM-$VERSION
echo "Extracting the source archive(s) for $PRGNAM..."
unzip ${SOURCE}
-cd ${SRCNAM}-${VERSION}-Code
+[ -d ${SRCNAM}-${VERSION}-Code ] && cd ${SRCNAM}-${VERSION}-Code
# No DOS files in my package.
sed -i -e 's/\r//g' $DOCS