aboutsummaryrefslogtreecommitdiff
path: root/dev/perl/perl-xml-sax
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2008-01-05 02:25:58 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2008-01-05 02:25:58 +0000
commit3c94ac5595c117c14a47898952ef4c43d63563b2 (patch)
treeceae19d64fd09a3952223fad8d0ac08928bd9e69 /dev/perl/perl-xml-sax
parente55aac1a549014b3708eb57045033cb8507a0aff (diff)
downloadslackbuilds-3c94ac5595c117c14a47898952ef4c43d63563b2.tar.gz
slackbuilds-3c94ac5595c117c14a47898952ef4c43d63563b2.tar.bz2
perl-xml-sax: fixing Makefile.PL, again
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1583 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'dev/perl/perl-xml-sax')
-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'`"