diff options
author | alzeih | 2018-09-19 13:58:39 +1200 |
---|---|---|
committer | alzeih | 2018-09-19 13:58:39 +1200 |
commit | 24ee1c41c71c8a38094dc16d317f48c5c3e18101 (patch) | |
tree | 5173271d50c525de02632027519723da05f7726f | |
parent | d52d44db5b6253fbdcec8360f7fc6775f3639750 (diff) | |
download | aur-24ee1c41c71c8a38094dc16d317f48c5c3e18101.tar.gz |
updpkg: linux-apparmor 4.18.4.arch1-1
Signed-off-by: alzeih <alzeih@users.noreply.github.com>
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 28 insertions, 6 deletions
@@ -1,7 +1,7 @@ pkgbase = linux-apparmor - pkgver = 4.18.3.arch1 + pkgver = 4.18.4.arch1 pkgrel = 1 - url = https://git.archlinux.org/linux.git/log/?h=v4.18.3-arch1 + url = https://git.archlinux.org/linux.git/log/?h=v4.18.4-arch1 arch = x86_64 license = GPL2 makedepends = xmlto @@ -10,8 +10,10 @@ pkgbase = linux-apparmor makedepends = bc makedepends = libelf makedepends = git + makedepends = python-sphinx + makedepends = graphviz options = !strip - source = archlinux-linux::git+https://git.archlinux.org/linux.git?signed#tag=v4.18.3-arch1 + source = archlinux-linux::git+https://git.archlinux.org/linux.git?signed#tag=v4.18.4-arch1 source = config source = config.fragment source = 60-linux.hook @@ -6,13 +6,13 @@ pkgbase=linux-apparmor #pkgbase=linux-custom # Build kernel with a different name -_srcver=4.18.3-arch1 +_srcver=4.18.4-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=(xmlto kmod inetutils bc libelf git python-sphinx graphviz) options=('!strip') _srcname=archlinux-linux source=( @@ -66,7 +66,7 @@ prepare() { build() { cd $_srcname - make bzImage modules + make bzImage modules htmldocs } _package() { @@ -196,6 +196,10 @@ _package-headers() { esac done < <(find "$builddir" -type f -perm -u+x ! -name vmlinux -print0) + msg2 "Adding symlink..." + mkdir -p "$pkgdir/usr/src" + ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase-$pkgver" + msg2 "Fixing permissions..." chmod -Rc u=rwX,go=rX "$pkgdir" } @@ -211,6 +215,22 @@ _package-docs() { mkdir -p "$builddir" cp -t "$builddir" -a Documentation + msg2 "Removing doctrees..." + rm -r "$builddir/Documentation/output/.doctrees" + + msg2 "Moving HTML docs..." + local src dst + while read -rd '' src; do + dst="$builddir/Documentation/${src#$builddir/Documentation/output/}" + mkdir -p "${dst%/*}" + mv "$src" "$dst" + rmdir -p --ignore-fail-on-non-empty "${src%/*}" + done < <(find "$builddir/Documentation/output" -type f -print0) + + msg2 "Adding symlink..." + mkdir -p "$pkgdir/usr/share/doc" + ln -sr "$builddir/Documentation" "$pkgdir/usr/share/doc/$pkgbase" + msg2 "Fixing permissions..." chmod -Rc u=rwX,go=rX "$pkgdir" } |