5.2.arch2-1
This commit is contained in:
parent
900b5ef2ae
commit
0471ab33d5
23
PKGBUILD
23
PKGBUILD
|
@ -4,13 +4,16 @@
|
|||
|
||||
pkgbase=linux # Build stock -ARCH kernel
|
||||
#pkgbase=linux-custom # Build kernel with a different name
|
||||
_srcver=5.1.16-arch1
|
||||
_srcver=5.2-arch2
|
||||
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 python-sphinx_rtd_theme
|
||||
graphviz imagemagick
|
||||
)
|
||||
options=('!strip')
|
||||
_srcname=archlinux-linux
|
||||
source=(
|
||||
|
@ -26,7 +29,7 @@ validpgpkeys=(
|
|||
'8218F88849AAC522E94CF470A5E9288C4FA415FA' # Jan Alexander Steffens (heftig)
|
||||
)
|
||||
sha256sums=('SKIP'
|
||||
'd8eac4a183fbc5a6391a21beb9be1c9b24b7ff2deeb3cedb8b4635722ddcede9'
|
||||
'013defd92c7530724105f323a22ae484cfc4a9053bbdc8eb2260134d873d7d86'
|
||||
'ae2e95db94ef7176207c690224169594d49445e04249d2499e9d2fbc117a0b21'
|
||||
'c043f3033bb781e2688794a59f6d1f7ed49ef9b13eb77ff9a425df33a244a636'
|
||||
'ad6344badc91ad0630caacde83f7f9b97276f80d26a20619a87952be65492c65')
|
||||
|
@ -61,7 +64,7 @@ prepare() {
|
|||
|
||||
build() {
|
||||
cd $_srcname
|
||||
make bzImage modules
|
||||
make bzImage modules htmldocs
|
||||
}
|
||||
|
||||
_package() {
|
||||
|
@ -212,6 +215,18 @@ _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"
|
||||
|
|
Loading…
Reference in New Issue