mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-12-23 07:42:53 +00:00
27 lines
318 B
Bash
27 lines
318 B
Bash
#!/bin/bash
|
|
|
|
cd $LFS/sources
|
|
tar xf patch-2.7.6.tar.xz
|
|
cd patch-2.7.6
|
|
|
|
./configure --prefix=/usr \
|
|
--host=$LFS_TGT \
|
|
--build=$(build-aux/config.guess)
|
|
|
|
if [ $? -ne 0 ]
|
|
then
|
|
exit 1
|
|
fi
|
|
|
|
make -j5
|
|
|
|
if [ $? -ne 0 ]
|
|
then
|
|
exit 1
|
|
fi
|
|
|
|
make DESTIR=$LFS install
|
|
|
|
cd $LFS/sources
|
|
rm -rf patch-2.7.6
|
|
|