diff options
author | alzeih | 2018-08-20 23:15:49 +1200 |
---|---|---|
committer | alzeih | 2018-08-20 23:28:23 +1200 |
commit | 5b9f585394dab1ebc0b5b7f62c953ba8e118408e (patch) | |
tree | d160b64d41dd6a919aff88da2ca199bfec769204 | |
parent | 3dd29f8051fa461c31e7a9efba79ccc26fdddaf6 (diff) | |
download | aur-5b9f585394dab1ebc0b5b7f62c953ba8e118408e.tar.gz |
updpkg: linux-apparmor 4.17.11.arch1-2
Signed-off-by: alzeih <alzeih@users.noreply.github.com>
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 27 |
2 files changed, 19 insertions, 10 deletions
@@ -1,6 +1,6 @@ pkgbase = linux-apparmor pkgver = 4.17.11.arch1 - pkgrel = 1 + pkgrel = 2 url = https://github.com/archlinux/linux/commits/v4.17.11-arch1 arch = x86_64 license = GPL2 @@ -8,7 +8,7 @@ pkgbase=linux-apparmor #pkgbase=linux-custom # Build kernel with a different name _srcver=4.17.11-arch1 pkgver=${_srcver//-/.} -pkgrel=1 +pkgrel=2 arch=(x86_64) url="https://github.com/archlinux/linux/commits/v$_srcver" license=(GPL2) @@ -35,15 +35,25 @@ sha256sums=('SKIP' '75f99f5239e03238f88d1a834c50043ec32b1dc568f2cc291b07d04718483919' 'ad6344badc91ad0630caacde83f7f9b97276f80d26a20619a87952be65492c65') +_kernelname=${pkgbase#linux} +: ${_kernelname:=-ARCH} + prepare() { cd $_srcname - # Insert patches or cherry-picks here - msg2 "Setting version..." scripts/setlocalversion --save-scmversion - echo "${pkgbase#linux}" > localversion.10-pkgname - echo "-$pkgrel" > localversion.20-pkgrel + echo "-$pkgrel" > localversion.10-pkgrel + echo "$_kernelname" > localversion.20-pkgname + + local src + for src in "${source[@]}"; do + src="${src%%::*}" + src="${src##*/}" + [[ $src = *.patch ]] || continue + msg2 "Applying patch $src..." + patch -Np1 < "../$src" + done msg2 "Setting config..." cp ../config .config @@ -68,7 +78,6 @@ _package() { install=linux.install local kernver="$(<version)" - local basekernel="$(<version cut -d. -f1-2)" cd $_srcname @@ -82,7 +91,7 @@ _package() { # a place for external modules, # with version file for building modules and running depmod from hook - local extradir="$pkgdir/usr/lib/modules/extramodules-${basekernel}${pkgbase#linux}" + local extradir="$pkgdir/usr/lib/modules/extramodules$_kernelname" install -Dt "$extradir" -m644 ../version ln -sr "$extradir" "$modulesdir/extramodules" @@ -98,7 +107,7 @@ _package() { local subst=" s|%PKGBASE%|$pkgbase|g s|%KERNVER%|$kernver|g - s|%EXTRAMODULES%|$extramodules|g + s|%EXTRAMODULES%|$extradir|g " # hack to allow specifying an initially nonexisting install file @@ -161,7 +170,7 @@ _package-headers() { msg2 "Removing unneeded architectures..." local arch for arch in "$builddir"/arch/*/; do - [[ $arch == */x86/ ]] && continue + [[ $arch = */x86/ ]] && continue echo "Removing $(basename "$arch")" rm -r "$arch" done |