summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorChris Down2019-05-02 16:53:50 -0400
committerChris Down2019-05-02 16:54:35 -0400
commitb95008f3d6f8c0cb0c9992750141f401656fbf20 (patch)
treef9f7accfd18df49ad4314d96a202d43714c79118 /PKGBUILD
parentff2b0e373d3d1fbb6c834c6f53056cc261f004fa (diff)
downloadaur-linux-cdown-mmots-git.tar.gz
upgpkg: linux-cdown-mmots-git 5.1.0.rc6.mm1-3
htmldocs, oh no. https://bugs.archlinux.org/task/62332
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD39
1 files changed, 4 insertions, 35 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 45b1898b66b..6fd597b3d76 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,11 +5,11 @@
pkgbase=linux-cdown-mmots-git # Build stock -ARCH kernel
_srcver=5.1.0-rc6-mm1
pkgver=${_srcver//-/.}
-pkgrel=2
+pkgrel=3
arch=(x86_64)
url="https://github.com/cdown/linux-mmots"
license=(GPL2)
-makedepends=(xmlto kmod inetutils bc libelf git python-sphinx graphviz python-sphinx_rtd_theme)
+makedepends=(xmlto kmod inetutils bc libelf git python-sphinx graphviz)
options=('!strip')
_srcname=archlinux-linux
source=(
@@ -62,7 +62,7 @@ prepare() {
build() {
cd $_srcname
- make bzImage modules htmldocs
+ make bzImage modules
}
_package() {
@@ -202,38 +202,7 @@ _package-headers() {
chmod -Rc u=rwX,go=rX "$pkgdir"
}
-_package-docs() {
- pkgdesc="Kernel hackers manual - HTML documentation that comes with the ${pkgbase/linux/Linux} kernel"
-
- local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
-
- cd $_srcname
-
- msg2 "Installing documentation..."
- 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"
-}
-
-pkgname=("$pkgbase" "$pkgbase-headers" "$pkgbase-docs")
+pkgname=("$pkgbase" "$pkgbase-headers")
for _p in "${pkgname[@]}"; do
eval "package_$_p() {
$(declare -f "_package${_p#$pkgbase}")