summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD28
2 files changed, 6 insertions, 33 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 50b77533882..b38d648d94d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -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
-
diff --git a/PKGBUILD b/PKGBUILD
index eaba0364bc1..a8ff36e290c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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}")