index : packages | |
Archlinux32 package modifications | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | extra/linux-galileo-gen2/PKGBUILD | 9 |
diff --git a/extra/linux-galileo-gen2/PKGBUILD b/extra/linux-galileo-gen2/PKGBUILD index 754f1cd3..034247a1 100644 --- a/extra/linux-galileo-gen2/PKGBUILD +++ b/extra/linux-galileo-gen2/PKGBUILD @@ -93,6 +93,14 @@ _package() { rm "$modulesdir"/{source,build} } +get_gcc_version_from_config() { + sed ' + s/^CONFIG_CC_VERSION_TEXT="gcc (GCC) \([0-9.]\+\)"$/\1/ + t + d + ' "$srcdir/$_srcname/.config" +} + _package-headers() { pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel" @@ -164,6 +172,7 @@ _package-headers() { echo "Adding symlink..." mkdir -p "$pkgdir/usr/src" ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase" + depends+=(gcc-libs=$(get_gcc_version_from_config)) } _package-docs() { |