25 lines
351 B
Bash
25 lines
351 B
Bash
version=\
|
|
(
|
|
'9.3.0'
|
|
)
|
|
|
|
url=\
|
|
(
|
|
"http://mirrors.kernel.org/gnu/gcc/gcc-$version/gcc-$version.tar.gz"
|
|
)
|
|
|
|
md5=\
|
|
(
|
|
'9b7e8f6cfad96114e726c752935af58a'
|
|
)
|
|
|
|
build_dir=$pkg_var
|
|
|
|
post_unpack()
|
|
{
|
|
patches=$(ls "$pkg_dir/patches-${version}/"*.patch)
|
|
if [ -n "$patches" ]; then
|
|
cd "../gcc-$version" && cat $patches | patch -p1
|
|
fi
|
|
}
|