summaryrefslogtreecommitdiffstats
path: root/source-builder/config/expat-2-1.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'source-builder/config/expat-2-1.cfg')
-rw-r--r--source-builder/config/expat-2-1.cfg16
1 files changed, 11 insertions, 5 deletions
diff --git a/source-builder/config/expat-2-1.cfg b/source-builder/config/expat-2-1.cfg
index 91dc245..cd91012 100644
--- a/source-builder/config/expat-2-1.cfg
+++ b/source-builder/config/expat-2-1.cfg
@@ -24,12 +24,16 @@ Source0: http://downloads.sourceforge.net/project/expat/expat/%{expat_version}/e
# Prepare the source code.
#
%prep
- %setup -q -c -n %{name}-%{version}
- cd expat-%{expat_version}
+ build_top=$(pwd)
+
+ %setup -q -n expat-%{expat_version}
%{?patch0:%patch0 -p1}
- cd ..
+
+ cd ${build_top}
%build
+ build_top=$(pwd)
+
cd expat-%{expat_version}
%{host_build_flags}
@@ -44,12 +48,14 @@ Source0: http://downloads.sourceforge.net/project/expat/expat/%{expat_version}/e
%{__make} %{?_smp_mflags} all
- cd ..
+ cd ${build_top}
%install
+ build_top=$(pwd)
+
rm -rf $SB_BUILD_ROOT
cd expat-%{expat_version}
%{__make} DESTDIR=$SB_BUILD_ROOT install
- cd ..
+ cd ${build_top}