index : packages | |
Archlinux32 package modifications | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2022-09-21 08:18:45 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2022-09-21 08:18:45 +0200 |
commit | 0f4b66d9e1542aeb8e6e79f69a7c2a395d82e59f (patch) | |
tree | 7e2563b97d4173c14bf85acf52a29991c0429702 /extra/linux-galileo-gen2 | |
parent | a2cd874246c218d525226e3d171194347e2f2a0e (diff) |
-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() { |