archrelease: copy trunk to extra-x86_64
[arch-packages.git] / linux-docs / trunk / PKGBUILD
blobfb64c5c8f480d8b7f16f248a094dc7d5eb2a1bdd
1 # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
3 pkgname=linux-docs
4 pkgver=5.8
5 pkgrel=1
6 pkgdesc="Kernel hacker's manual"
7 url="https://www.kernel.org/doc/html/latest/"
8 arch=(any)
9 license=(GPL2)
10 makedepends=(xmlto python-sphinx python-sphinx_rtd_theme graphviz imagemagick)
11 source=(https://www.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/linux-$pkgver.tar.{xz,sign}
12         sphinx-workaround.patch)
13 sha256sums=('e7f75186aa0642114af8f19d99559937300ca27acaf7451b36d4f9b0f85cf1f5'
14             'SKIP'
15             '8cb21e0b3411327b627a9dd15b8eb773295a0d2782b1a41b2a8839d1b2f5778c')
16 validpgpkeys=('ABAF11C65A2970B130ABE3C479BE3E4300411886'  # Linus Torvalds
17               '647F28654894E3BD457199BE38DBBDC86092693E') # Greg Kroah-Hartman
19 prepare() {
20   cd linux-$pkgver
21   patch -p1 < ../sphinx-workaround.patch # https://bugs.archlinux.org/task/66156
24 build() {
25   make -C linux-$pkgver htmldocs BUILDDIR="$srcdir/html"
28 package() {
29   mkdir -p "$pkgdir"/usr/share/doc/linux/{txt,html}
31   # Skip hidden files (no dotglob)
32   cp -r linux-$pkgver/Documentation/* "$pkgdir/usr/share/doc/linux/txt"
33   cp -r html/* "$pkgdir/usr/share/doc/linux/html"
36 # vim:set sw=2 et: