This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
lsts_glued/rules/gcc/common.bash

25 lines
352 B
Bash
Raw Normal View History

2013-07-13 17:19:22 +01:00
version=\
(
2020-09-16 16:09:29 +01:00
'10.2.0'
2013-07-13 17:19:22 +01:00
)
url=\
(
2020-09-16 16:09:29 +01:00
"http://mirrors.kernel.org/gnu/gcc/gcc-$version/gcc-$version.tar.xz"
2013-07-13 17:19:22 +01:00
)
md5=\
(
2020-09-16 16:09:29 +01:00
'e9fd9b1789155ad09bcf3ae747596b50'
2013-07-13 17:19:22 +01:00
)
2014-02-02 09:43:32 +00:00
build_dir=$pkg_var
2013-07-13 17:19:22 +01:00
post_unpack()
{
patches=$(ls "$pkg_dir/patches-${version}/"*.patch)
2013-07-13 17:19:22 +01:00
if [ -n "$patches" ]; then
cd "../gcc-$version" && cat $patches | patch -p1
fi
}