summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimofey Titovets2016-11-27 17:06:39 +0300
committerTimofey Titovets2016-11-27 17:06:39 +0300
commit496503673de56a40fdcb4ffa1a3fa6106c1400a8 (patch)
tree9a65595d33688dfefbf5cd24bfd2e8a71f9e8321
parenta52c66e7497d89348a75c35080a9898f6fb08079 (diff)
downloadaur-496503673de56a40fdcb4ffa1a3fa6106c1400a8.tar.gz
Update
Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
-rw-r--r--.SRCINFO4
-rw-r--r--99-linux.hook11
-rw-r--r--PKGBUILD17
-rw-r--r--linux.preset8
4 files changed, 25 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 14772cacd67..02d029e854b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
# Generated by mksrcinfo v8
-# Sun Oct 23 14:43:48 UTC 2016
+# Sun Nov 27 14:06:03 UTC 2016
pkgbase = linux-next-git
- pkgver = 20161021
+ pkgver = 20161127
pkgrel = 3
url = http://www.kernel.org/
arch = i686
diff --git a/99-linux.hook b/99-linux.hook
new file mode 100644
index 00000000000..9851151995b
--- /dev/null
+++ b/99-linux.hook
@@ -0,0 +1,11 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Target = boot/vmlinuz-%PKGBASE%
+Target = usr/lib/initcpio/*
+
+[Action]
+Description = Updating %PKGBASE% initcpios
+When = PostTransaction
+Exec = /usr/bin/mkinitcpio -p %PKGBASE%
diff --git a/PKGBUILD b/PKGBUILD
index 68ea8cb42af..1c525284c47 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgbase=linux-next-git
#pkgname=("${pkgbase}")
_srcname=linux-next
-pkgver=20161021
+pkgver=20161127
pkgrel=3
arch=('i686' 'x86_64')
url="http://www.kernel.org/"
@@ -155,14 +155,13 @@ _package() {
-e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/" \
-i "${startdir}/${install}"
- # install mkinitcpio preset file for kernel
- install -D -m644 "${srcdir}/linux.preset" "${pkgdir}/etc/mkinitcpio.d/${pkgbase}.preset"
- sed \
- -e "1s|'linux.*'|'${pkgbase}'|" \
- -e "s|ALL_kver=.*|ALL_kver=\"/boot/vmlinuz-${pkgbase}\"|" \
- -e "s|default_image=.*|default_image=\"/boot/initramfs-${pkgbase}.img\"|" \
- -e "s|fallback_image=.*|fallback_image=\"/boot/initramfs-${pkgbase}-fallback.img\"|" \
- -i "${pkgdir}/etc/mkinitcpio.d/${pkgbase}.preset"
+ # install mkinitcpio preset file for kernel
+ sed "s|%PKGBASE%|${pkgbase}|g" "${srcdir}/linux.preset" |
+ install -D -m644 /dev/stdin "${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}
diff --git a/linux.preset b/linux.preset
index b06292d104e..66709a8c153 100644
--- a/linux.preset
+++ b/linux.preset
@@ -1,14 +1,14 @@
-# mkinitcpio preset file for the 'linux' package
+# mkinitcpio preset file for the '%PKGBASE%' package
ALL_config="/etc/mkinitcpio.conf"
-ALL_kver="/boot/vmlinuz-linux"
+ALL_kver="/boot/vmlinuz-%PKGBASE%"
PRESETS=('default' 'fallback')
#default_config="/etc/mkinitcpio.conf"
-default_image="/boot/initramfs-linux.img"
+default_image="/boot/initramfs-%PKGBASE%.img"
#default_options=""
#fallback_config="/etc/mkinitcpio.conf"
-fallback_image="/boot/initramfs-linux-fallback.img"
+fallback_image="/boot/initramfs-%PKGBASE%-fallback.img"
fallback_options="-S autodetect"