FS#72275: Don't package files created by depmod

This commit is contained in:
Jan Alexander Steffens 2022-04-08 18:11:21 +00:00
parent d60d23d3e0
commit b6880b286a
1 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,7 @@ url="https://github.com/archlinux/linux/commits/$_srctag"
arch=(x86_64) arch=(x86_64)
license=(GPL2) license=(GPL2)
makedepends=( makedepends=(
bc kmod libelf pahole cpio perl tar xz bc libelf pahole cpio perl tar xz
xmlto python-sphinx python-sphinx_rtd_theme graphviz imagemagick xmlto python-sphinx python-sphinx_rtd_theme graphviz imagemagick
git git
) )
@ -85,7 +85,8 @@ _package() {
echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase" echo "$pkgbase" | install -Dm644 /dev/stdin "$modulesdir/pkgbase"
echo "Installing modules..." echo "Installing modules..."
make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 modules_install make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 \
DEPMOD=/doesnt/exist modules_install # Suppress depmod
# remove build and source links # remove build and source links
rm "$modulesdir"/{source,build} rm "$modulesdir"/{source,build}