diff options
author | greg2010 | 2020-08-25 22:48:15 -0400 |
---|---|---|
committer | greg2010 | 2020-08-25 22:48:15 -0400 |
commit | c55e436b9efe7223b255be137751c0dd2c8d5c9d (patch) | |
tree | 1d59e15c1716f0c94f805c051a06756f08d5ad71 /PKGBUILD | |
parent | 10a6b003ca8a74ba1f738933b3e9182cf435a903 (diff) | |
download | aur-c55e436b9efe7223b255be137751c0dd2c8d5c9d.tar.gz |
bump to version 5.8
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 59 |
1 files changed, 35 insertions, 24 deletions
@@ -5,13 +5,17 @@ # Original Contributor: Thomas Baechler <thomas@archlinux.org> pkgbase=linux-macbook -_srcver=5.6.10-arch1 +_srcver=5.8.3-arch1 pkgver=${_srcver//-/.} pkgrel=1 arch=(x86_64) url="https://git.archlinux.org/linux.git/log/?h=v$_srcver" license=(GPL2) -makedepends=(xmlto kmod inetutils bc libelf git) +makedepends=( + bc kmod libelf pahole + xmlto python-sphinx python-sphinx_rtd_theme graphviz imagemagick + git +) options=('!strip') _srcname=archlinux-linux source=( @@ -22,27 +26,31 @@ source=( linux.preset # standard config files for mkinitcpio ramdisk macbook-wakeup.service # service file for suspend/resume events RFC-PCI-Workaround-to-enable-poweroff-on-Mac-Pro-11.patch + sphinx-workaround.patch ) validpgpkeys=( 'ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds '647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman - '8218F88849AAC522E94CF470A5E9288C4FA415FA' # Jan Alexander Steffens (heftig) + 'A2FF3A36AAA56654109064AB19802F8B0D70FC30' # Jan Alexander Steffens (heftig) ) sha256sums=('SKIP' - 'f392c9ecbb5177ea2573aaf22935322940ea2be0366f3fb9c9f861431f4aed21' + 'd57308ac4d40fb0a4fc3825070583218b07be2ccf6bb219429a8b13b8e96efa8' 'ae2e95db94ef7176207c690224169594d49445e04249d2499e9d2fbc117a0b21' 'c043f3033bb781e2688794a59f6d1f7ed49ef9b13eb77ff9a425df33a244a636' 'ad6344badc91ad0630caacde83f7f9b97276f80d26a20619a87952be65492c65' 'c5a714823c3418692bc5c212dd5d094a0e2ae6147d6726822911f1c26e3a1d1b' - 'a4e044fb954f035aa70af4c7d79f8a6076933bdbbf9efee749304829621d77ed') - + '1c39ef4524ef6edf7bf465075cca899bae779160b3cc04e1b2a39bf1bda710e3' + '8cb21e0b3411327b627a9dd15b8eb773295a0d2782b1a41b2a8839d1b2f5778c') +export KBUILD_BUILD_HOST=archlinux +export KBUILD_BUILD_USER=$pkgbase +export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})" _kernelname=${pkgbase#linux} : ${_kernelname:=-ARCH} prepare() { cd $_srcname - msg2 "Setting version..." + echo "Setting version..." scripts/setlocalversion --save-scmversion echo "-$pkgrel" > localversion.10-pkgrel echo "$_kernelname" > localversion.20-pkgname @@ -52,16 +60,16 @@ prepare() { src="${src%%::*}" src="${src##*/}" [[ $src = *.patch ]] || continue - msg2 "Applying patch $src..." + echo "Applying patch $src..." patch -Np1 < "../$src" done - msg2 "Setting config..." + echo "Setting config..." cp ../config .config make olddefconfig make -s kernelrelease > ../version - msg2 "Prepared %s version %s" "$pkgbase" "$(<../version)" + echo "Prepared %s version %s" "$pkgbase" "$(<../version)" } build() { @@ -84,14 +92,14 @@ _package() { cd $_srcname - msg2 "Installing boot image..." + echo "Installing boot image..." # systemd expects to find the kernel here to allow hibernation # https://github.com/systemd/systemd/commit/edda44605f06a41fb86b7ab8128dcf99161d2344 install -Dm644 "$(make -s image_name)" "$modulesdir/vmlinuz" install -Dm644 "$modulesdir/vmlinuz" "$pkgdir/boot/vmlinuz-$pkgbase" - msg2 "Installing modules..." - make INSTALL_MOD_PATH="$pkgdir/usr" modules_install + echo "Installing modules..." + make INSTALL_MOD_PATH="$pkgdir/usr" INSTALL_MOD_STRIP=1 modules_install # a place for external modules, # with version file for building modules and running depmod from hook @@ -138,7 +146,7 @@ _package-headers() { cd $_srcname - msg2 "Installing build files..." + echo "Installing build files..." install -Dt "$builddir" -m644 Makefile .config Module.symvers System.map vmlinux install -Dt "$builddir/kernel" -m644 kernel/Makefile install -Dt "$builddir/arch/x86" -m644 arch/x86/Makefile @@ -153,7 +161,7 @@ _package-headers() { # ??? mkdir "$builddir/.tmp_versions" - msg2 "Installing headers..." + echo "Installing headers..." cp -t "$builddir" -a include cp -t "$builddir/arch/x86" -a arch/x86/include install -Dt "$builddir/arch/x86/kernel" -m644 arch/x86/kernel/asm-offsets.s @@ -169,10 +177,10 @@ _package-headers() { install -Dt "$builddir/drivers/media/dvb-frontends" -m644 drivers/media/dvb-frontends/*.h install -Dt "$builddir/drivers/media/tuners" -m644 drivers/media/tuners/*.h - msg2 "Installing KConfig files..." + echo "Installing KConfig files..." find . -name 'Kconfig*' -exec install -Dm644 {} "$builddir/{}" \; - msg2 "Removing unneeded architectures..." + echo "Removing unneeded architectures..." local arch for arch in "$builddir"/arch/*/; do [[ $arch = */x86/ ]] && continue @@ -180,16 +188,16 @@ _package-headers() { rm -r "$arch" done - msg2 "Removing documentation..." + echo "Removing documentation..." rm -r "$builddir/Documentation" - msg2 "Removing broken symlinks..." + echo "Removing broken symlinks..." find -L "$builddir" -type l -printf 'Removing %P\n' -delete - msg2 "Removing loose objects..." + echo "Removing loose objects..." find "$builddir" -type f -name '*.o' -printf 'Removing %P\n' -delete - msg2 "Stripping build tools..." + echo "Stripping build tools..." local file while read -rd '' file; do case "$(file -bi "$file")" in @@ -204,7 +212,10 @@ _package-headers() { esac done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0) - msg2 "Adding symlink..." + echo "Stripping vmlinux..." + strip -v $STRIP_STATIC "$builddir/vmlinux" + + echo "Adding symlink..." mkdir -p "$pkgdir/usr/src" ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase-$pkgver" @@ -219,11 +230,11 @@ _package-docs() { cd $_srcname - msg2 "Installing documentation..." + echo "Installing documentation..." mkdir -p "$builddir" cp -t "$builddir" -a Documentation - msg2 "Adding symlink..." + echo "Adding symlink..." mkdir -p "$pkgdir/usr/share/doc" ln -sr "$builddir/Documentation" "$pkgdir/usr/share/doc/$pkgbase" |