diff options
Diffstat (limited to 'dev/perl/perl-file-temp/perl-file-temp.SlackBuild')
-rwxr-xr-x | dev/perl/perl-file-temp/perl-file-temp.SlackBuild | 13 |
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 : | \ |