From 570c9f386310c01d139bd9559fea68add16fd34b Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Sun, 23 Sep 2007 11:06:13 +0000 Subject: [PATCH] Unpacking the tarballs from inside the build scripts. --- LFS/lfs.xsl | 80 +++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 69 insertions(+), 11 deletions(-) diff --git a/LFS/lfs.xsl b/LFS/lfs.xsl index 9b1762f..41d80fb 100644 --- a/LFS/lfs.xsl +++ b/LFS/lfs.xsl @@ -54,13 +54,14 @@ - + - + @@ -71,15 +72,14 @@ - + at this point of the build. This one is only a dummy example. --> @@ -87,13 +87,16 @@ PKG_PHASE=dummy PACKAGE=dummy VERSION=0.0.0 TARBALL=dummy-0.0.0.tar.bz2 - + + + cd $PKGDIR ./configure --prefix=/usr make make check make install + @@ -105,7 +108,7 @@ make install - + + + + cd $SRCDIR + + + cd /sources + + + +PKGDIR=`tar -tf $TARBALL | head -n1 | sed -e 's@^./@@;s@/.*@@'` +if [ -d $PKGDIR ]; then + rm -rf $PKGDIR +fi +if [ -d ${PKGDIR%-*}-build ]; then + rm -rf ${PKGDIR%-*}-build +fi +tar -xf $TARBALL + + + + cd $PKGDIR - tar -xvf ../$TARBALL_1 --strip-components=1 + tar -xf ../$TARBALL_1 --strip-components=1 @@ -229,6 +261,23 @@ make install + + + + + cd $SRCDIR + + + cd /sources + + + +rm -rf $PKGDIR +rm -rf ${PKGDIR%-*}-build + + + + @@ -299,13 +348,16 @@ PKG_PHASE=dummy PACKAGE=dummy VERSION=0.0.0 TARBALL=dummy-0.0.0.tar.bz2 - + + + cd $PKGDIR ./configure --prefix=/usr make make check make install + @@ -401,11 +453,17 @@ make install + + + + + +