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
2015-02-05 13:43:52 +00:00

25 lines
352 B
Bash

version=\
(
'4.9.2'
)
url=\
(
"http://mirrors.kernel.org/gnu/gcc/gcc-$version/gcc-$version.tar.bz2"
)
md5=\
(
'4df8ee253b7f3863ad0b86359cd39c43'
)
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
}