]> gitweb.fluxo.info Git - slackbuilds.git/commitdiff
perl-devel-dprof: fixed from the right model file
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Wed, 5 Mar 2008 14:56:52 +0000 (14:56 +0000)
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Wed, 5 Mar 2008 14:56:52 +0000 (14:56 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1641 370017ae-e619-0410-ac65-c121f96126d4

dev/perl/perl-devel-dprof/perl-devel-dprof.SlackBuild

index d690cdb270fe5885c2682ca75e665dcd05e96005..bdcf0187d3447a916a1176d9bae2088e50c9e913 100755 (executable)
@@ -66,7 +66,7 @@ ERROR_TAR=37;       ERROR_MKPKG=38;     ERROR_GPG=39
 ERROR_PATCH=40;     ERROR_VCS=41;       ERROR_MKDIR=42
 
 # Clean up any leftovers of previous builds
-rm -rf "$PKG_WORK" 2> /dev/null
+rm -rf "$PKG_SRC" 2> /dev/null
 rm -rf "$PKG" 2> /dev/null
 
 # Create directories if necessary
@@ -86,14 +86,11 @@ fi
 # Untar
 cd "$PKG_WORK"
 tar --no-same-owner --no-same-permissions -xvf "$SRC_DIR/$SRC" || exit $ERROR_TAR
-PKG_SRC="$PWD/`ls -l | awk '/^d/ { print $8 }'`"
+PKG_SRC=`ls -l | awk '/^d/ { print $8 }'`
 cd "$PKG_SRC"
 
 # Configure
-CFLAGS="$SLKCFLAGS" \
-  CXXFLAGS="$SLKCFLAGS" \
-  ./configure \
-  --prefix="$PREFIX" --libdir="$LIBDIR" $CONF_OPTIONS || exit $ERROR_CONF
+perl Makefile.PL || exit $ERROR_CONF
 
 # Compile
 make $NUMJOBS || exit $ERROR_MAKE
@@ -101,6 +98,15 @@ make $NUMJOBS || exit $ERROR_MAKE
 # Install
 make install DESTDIR="$PKG" || exit $ERROR_INSTALL
 
+# Fix .packlist
+cd $PKG
+
+string="`echo $PKG | sed -e 's/\//\\\\\//g'`"
+for file in `find -name .packlist`; do
+  sed -e "s/^$string//g" $file > $file.tmp
+  mv $file.tmp $file
+done
+
 # Strip binaries
 ( cd "$PKG"
   find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \