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/packages/gcc/common.bash

25 lines
365 B
Bash
Raw Normal View History

2013-07-13 17:19:22 +01:00
version=\
(
2014-01-06 17:11:16 +00:00
'4.8.2'
2013-07-13 17:19:22 +01:00
)
url=\
(
"http://mirrors.kernel.org/gnu/gcc/gcc-$version/gcc-$version.tar.bz2"
)
md5=\
(
2014-01-06 17:11:16 +00:00
'a3d7d63b9cb6b6ea049469a0c4a43c9d'
2013-07-13 17:19:22 +01:00
)
build_dir=$PKG_VAR
post_unpack()
{
patches=$(ls "$cfg_package_spec_dir/patches-${version}/"*.patch)
if [ -n "$patches" ]; then
cd "../gcc-$version" && cat $patches | patch -p1
fi
}