summaryrefslogtreecommitdiff
path: root/development/gazpacho/gazpacho.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/gazpacho/gazpacho.SlackBuild')
-rw-r--r--development/gazpacho/gazpacho.SlackBuild12
1 files changed, 8 insertions, 4 deletions
diff --git a/development/gazpacho/gazpacho.SlackBuild b/development/gazpacho/gazpacho.SlackBuild
index ec56bf499a..9fa983c6b2 100644
--- a/development/gazpacho/gazpacho.SlackBuild
+++ b/development/gazpacho/gazpacho.SlackBuild
@@ -7,8 +7,8 @@
PRGNAM=gazpacho
VERSION=${VERSION:-0.7.2}
-ARCH=noarch
-BUILD=${BUILD:-2}
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -31,6 +31,11 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Remove sys.path manipulation which is only needed for the developers who
+# don't want to install the development version (and the manipulation assumes
+# %prefix%/lib/ as the python path).
+patch -p0 < $CWD/bin_gazpacho.patch
+
python setup.py install --root=$PKG
mkdir -p $PKG/usr/doc
@@ -46,5 +51,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
-
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}