aboutsummaryrefslogtreecommitdiff
path: root/dev/perl/perl-file-temp/perl-file-temp.SlackBuild
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2008-04-23 02:52:55 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2008-04-23 02:52:55 +0000
commitb907878e1daeab3db1f743ba0d2a060877941840 (patch)
treeab6e5731d7640223c25e92f778e7c38212f1950c /dev/perl/perl-file-temp/perl-file-temp.SlackBuild
parent5b1e67dba7f479385e323efe2898ac74593e3b46 (diff)
downloadslackbuilds-b907878e1daeab3db1f743ba0d2a060877941840.tar.gz
slackbuilds-b907878e1daeab3db1f743ba0d2a060877941840.tar.bz2
regenerated perl SlackBuilds from mkbuilds
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1744 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'dev/perl/perl-file-temp/perl-file-temp.SlackBuild')
-rwxr-xr-xdev/perl/perl-file-temp/perl-file-temp.SlackBuild13
1 files changed, 10 insertions, 3 deletions
diff --git a/dev/perl/perl-file-temp/perl-file-temp.SlackBuild b/dev/perl/perl-file-temp/perl-file-temp.SlackBuild
index b7f63730..9a77b62b 100755
--- a/dev/perl/perl-file-temp/perl-file-temp.SlackBuild
+++ b/dev/perl/perl-file-temp/perl-file-temp.SlackBuild
@@ -14,7 +14,7 @@
# this program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place - Suite 330, Boston, MA 02111-1307, USA
#
-# slackbuild for perl-file-temp, by rha
+# slackbuild for perl-file-temp, by Silvio Rhatto
# requires:
# tested: perl-file-temp-0.20
#
@@ -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,7 +86,7 @@ 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
@@ -98,6 +98,13 @@ make $NUMJOBS || exit $ERROR_MAKE
# Install
make install DESTDIR="$PKG" || exit $ERROR_INSTALL
+# Fix .packlist
+string="`echo $PKG | sed -e 's/\//\\\\\//g'`"
+for file in `find $PKG -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 : | \