diff options
author | Cyano Hao | 2021-03-27 16:32:21 +0800 |
---|---|---|
committer | Cyano Hao | 2021-03-27 16:49:15 +0800 |
commit | 142f7f15d41711901bd669b586b03405bc597060 (patch) | |
tree | 96ac5f4a7edb56db43b6b14f5480878ef7d10279 | |
parent | f5032a4e273351106f0251ee5afa298996d8097e (diff) | |
download | aur-142f7f15d41711901bd669b586b03405bc597060.tar.gz |
remove docs: it costs too much time and is identical to `linux-docs`
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 28 |
2 files changed, 6 insertions, 33 deletions
@@ -1,7 +1,7 @@ pkgbase = linux-x32 pkgdesc = Linux with x32 ABI pkgver = 5.11.10.arch1 - pkgrel = 1 + pkgrel = 2 url = https://git.archlinux.org/linux.git/log/?h=v5.11.10-arch1 arch = x86_64 license = GPL2 @@ -13,11 +13,6 @@ pkgbase = linux-x32 makedepends = perl makedepends = tar makedepends = xz - makedepends = xmlto - makedepends = python-sphinx - makedepends = python-sphinx_rtd_theme - makedepends = graphviz - makedepends = imagemagick makedepends = git options = !strip source = archlinux-linux::git+https://git.archlinux.org/linux.git?signed#tag=v5.11.10-arch1 @@ -35,6 +30,7 @@ pkgname = linux-x32 depends = initramfs optdepends = crda: to set the correct wireless channels of your country optdepends = linux-firmware: firmware images needed for some devices + optdepends = linux-docs: documentation for Arch Linux’s distribution kernel provides = VIRTUALBOX-GUEST-MODULES provides = WIREGUARD-MODULE @@ -42,6 +38,3 @@ pkgname = linux-x32-headers pkgdesc = Headers and scripts for building modules for the Linux with x32 ABI kernel depends = pahole -pkgname = linux-x32-docs - pkgdesc = Documentation for the Linux with x32 ABI kernel - @@ -3,7 +3,7 @@ pkgbase=linux-x32 pkgver=5.11.10.arch1 -pkgrel=1 +pkgrel=2 pkgdesc='Linux with x32 ABI' _srctag=v${pkgver%.*}-${pkgver##*.} url="https://git.archlinux.org/linux.git/log/?h=$_srctag" @@ -11,7 +11,6 @@ arch=(x86_64) license=(GPL2) makedepends=( bc kmod libelf pahole cpio perl tar xz - xmlto python-sphinx python-sphinx_rtd_theme graphviz imagemagick git ) options=('!strip') @@ -60,14 +59,14 @@ prepare() { build() { cd $_srcname make all - make htmldocs } _package() { pkgdesc="The $pkgdesc kernel and modules" depends=(coreutils kmod initramfs) optdepends=('crda: to set the correct wireless channels of your country' - 'linux-firmware: firmware images needed for some devices') + 'linux-firmware: firmware images needed for some devices' + 'linux-docs: documentation for Arch Linux’s distribution kernel') provides=(VIRTUALBOX-GUEST-MODULES WIREGUARD-MODULE) cd $_srcname @@ -168,26 +167,7 @@ _package-headers() { ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase" } -_package-docs() { - pkgdesc="Documentation for the $pkgdesc kernel" - - cd $_srcname - local builddir="$pkgdir/usr/lib/modules/$(<version)/build" - - echo "Installing documentation..." - local src dst - while read -rd '' src; do - dst="${src#Documentation/}" - dst="$builddir/Documentation/${dst#output/}" - install -Dm644 "$src" "$dst" - done < <(find Documentation -name '.*' -prune -o ! -type d -print0) - - echo "Adding symlink..." - mkdir -p "$pkgdir/usr/share/doc" - ln -sr "$builddir/Documentation" "$pkgdir/usr/share/doc/$pkgbase" -} - -pkgname=("$pkgbase" "$pkgbase-headers" "$pkgbase-docs") +pkgname=("$pkgbase" "$pkgbase-headers") for _p in "${pkgname[@]}"; do eval "package_$_p() { $(declare -f "_package${_p#$pkgbase}") |