diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 31 |
1 files changed, 19 insertions, 12 deletions
@@ -4,10 +4,10 @@ #pkgbase=linux-lts pkgbase=linux-lts-surface4 _srcname=linux-4.4 -pkgver=4.4.36 +pkgver=4.4.38 pkgrel=1 arch=('i686' 'x86_64') -url="http://www.kernel.org/" +url="https://www.kernel.org/" license=('GPL2') makedepends=('xmlto' 'docbook-xsl' 'kmod' 'inetutils' 'bc') options=('!strip') @@ -15,28 +15,33 @@ source=(https://www.kernel.org/pub/linux/kernel/v4.x/${_srcname}.tar.{xz,sign} https://www.kernel.org/pub/linux/kernel/v4.x/patch-${pkgver}.{xz,sign} # the main kernel config files 'config' 'config.x86_64' + # pacman hook for initramfs regeneration + '99-linux.hook' # standard config files for mkinitcpio ramdisk linux-lts.preset change-default-console-loglevel.patch - fix_race_condition_in_packet_set_ring.diff 0001-sdhci-revert.patch 0002-surface-wifi.patch 0003-surface-cover.patch - 0004-surface-pro4-button.patch) + 0004-surface-pro4-button.patch + 0005-HID-multitouch-Add-MT_QUIRK_NOT_SEEN_MEANS_UP.patch + 0006-HID-multitouch-Ignore-invalid-reports.patch) # https://www.kernel.org/pub/linux/kernel/v4.x/sha256sums.asc sha256sums=('401d7c8fef594999a460d10c72c5a94e9c2e1022f16795ec51746b0d165418b2' 'SKIP' - '468ddfe3f29c314b40e32410c796fda9277620d50bc47b50fafc8a5a4c375e61' + '48ec169c7adda820973b3cb9c4c91c72bb69c86f530d149065491a20ef0c4057' 'SKIP' 'e8d200b125b4391020c2bc1f43bf8f3a372f0bbdaf9bad71b31574edab7f908f' '236fc805c543cb774785f630bf37c7fdc2ff7c9904bb240ff70e0b7213058de5' + '834bd254b56ab71d73f59b3221f056c72f559553c04718e350ab2a3e2991afe0' '9e9e7ee3476e55e68390eda7e983fa18d44e76db5521f023fd2b388b1150bc40' '1256b241cd477b265a3c2d64bdc19ffe3c9bbcee82ea3994c590c2c76e767d99' - 'ad1ee95f906f88d31fcdb9273cd08e02e8eda177449f0c98dc1bff8cbf1483c2' '5313df7cb5b4d005422bd4cd0dae956b2dadba8f3db904275aaf99ac53894375' 'c59a18d38d75fec7e9cc3b4efb6a997b3714c3156f6f80a6915bd16db409cde9' - '26ed3893c370952f8310a0b2bdecdabf5e3185ad8e9100f1e2ef5260fdf52c84' - '1a34eae36a3f686f1bc158d7d13564f009e30b8866c919d7fe14590e872f095d') + '243be112ad418060b7c94361f6664e17cf17a854b77dc65a3e53b16881b4785f' + '1a34eae36a3f686f1bc158d7d13564f009e30b8866c919d7fe14590e872f095d' + '47a80bb6e1f113ccf2b3eff0b277a398b84b54f2100ddf42e31b94ea04654f49' + 'a9ce07b6533d86c3ffae8d5240d9c58b18778d0c5fed8ed97bde98ae43c4df71') validpgpkeys=('ABAF11C65A2970B130ABE3C479BE3E4300411886' # Linus Torvalds <torvalds@linux-foundation.org> '647F28654894E3BD457199BE38DBBDC86092693E' # Greg Kroah-Hartman (Linux kernel stable release signing key) <greg@kroah.com> ) @@ -48,10 +53,6 @@ prepare() { # add upstream patch patch -p1 -i "${srcdir}/patch-${pkgver}" - # fix a race condition that allows to gain root - # https://marc.info/?l=linux-netdev&m=148054660230570&w=2 - patch -p1 -i "${srcdir}/fix_race_condition_in_packet_set_ring.diff" - # add latest fixes from stable queue, if needed # http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git @@ -64,6 +65,8 @@ prepare() { patch -p1 -i "${srcdir}/0002-surface-wifi.patch" patch -p1 -i "${srcdir}/0003-surface-cover.patch" patch -p1 -i "${srcdir}/0004-surface-pro4-button.patch" + patch -p1 -i "${srcdir}/0005-HID-multitouch-Add-MT_QUIRK_NOT_SEEN_MEANS_UP.patch" + patch -p1 -i "${srcdir}/0006-HID-multitouch-Ignore-invalid-reports.patch" # set DEFAULT_CONSOLE_LOGLEVEL to 4 (same value as the 'quiet' kernel param) # remove this when a Kconfig knob is made available by upstream @@ -146,6 +149,10 @@ _package() { -e "s|fallback_image=.*|fallback_image=\"/boot/initramfs-${pkgbase}-fallback.img\"|" \ -i "${pkgdir}/etc/mkinitcpio.d/${pkgbase}.preset" + # install pacman hook for initramfs regeneration + sed "s|%PKGBASE%|${pkgbase}|g" "${srcdir}/99-linux.hook" | + install -D -m644 /dev/stdin "${pkgdir}/usr/share/libalpm/hooks/99-${pkgbase}.hook" + # remove build and source links rm -f "${pkgdir}"/lib/modules/${_kernver}/{source,build} # remove the firmware |