aboutsummaryrefslogtreecommitdiff
path: root/dev/perl/perl-xml-sax/perl-xml-sax.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'dev/perl/perl-xml-sax/perl-xml-sax.SlackBuild')
-rwxr-xr-xdev/perl/perl-xml-sax/perl-xml-sax.SlackBuild11
1 files changed, 5 insertions, 6 deletions
diff --git a/dev/perl/perl-xml-sax/perl-xml-sax.SlackBuild b/dev/perl/perl-xml-sax/perl-xml-sax.SlackBuild
index 984efa32..b1bba68b 100755
--- a/dev/perl/perl-xml-sax/perl-xml-sax.SlackBuild
+++ b/dev/perl/perl-xml-sax/perl-xml-sax.SlackBuild
@@ -77,6 +77,7 @@ if [ "$RTOOL" == "wget" ] && [ ! -f "$SRC_DIR/$SRC" ]; then
fi
TMP="$TMP/$PACKAGE"
+PKG="$TMP/package-$PACKAGE"
if [ ! -d "$TMP" ]; then
mkdir -p $TMP
@@ -85,17 +86,15 @@ fi
tar xvf $SRC_DIR/$SRC || exit $ERROR_TAR
cd $FILE_NAME-$VERSION
-# config and install!
+# config, make and install!
eval $(perl '-V:sitelibexp')
-sed -i -e "s,\(-MXML::SAX\),-I$PKG/${sitelibexp} \1," Makefile.PL
+sed -i -e "s,\(-MXML::SAX\),-I${PKG}/${sitelibexp} \1," Makefile.PL
perl Makefile.PL || exit $ERROR_CONF
make || exit $ERROR_MAKE
make test
-make install DESTDIR=$TMP/package-$PACKAGE || exit $ERROR_INSTALL
+make install DESTDIR=$PKG || exit $ERROR_INSTALL
-# make the package
-
-cd $TMP/package-$PACKAGE
+cd $PKG
# we need to fix .packlist
string="`echo $TMP/package-$PACKAGE | sed -e 's/\//\\\\\//g'`"