5.4.1.arch1-1
This commit is contained in:
parent
196a2934c5
commit
3ead601c9d
36
PKGBUILD
36
PKGBUILD
@ -1,14 +1,18 @@
|
||||
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
|
||||
|
||||
pkgbase=linux
|
||||
pkgver=5.4.arch1
|
||||
pkgver=5.4.1.arch1
|
||||
pkgrel=1
|
||||
pkgdesc='Linux'
|
||||
_srctag=v${pkgver%.*}-${pkgver##*.}
|
||||
url="https://git.archlinux.org/linux.git/log/?h=$_srctag"
|
||||
arch=(x86_64)
|
||||
license=(GPL2)
|
||||
makedepends=(bc kmod libelf git)
|
||||
makedepends=(
|
||||
bc kmod libelf
|
||||
xmlto python-sphinx python-sphinx_rtd_theme graphviz imagemagick
|
||||
git
|
||||
)
|
||||
options=('!strip')
|
||||
_srcname=archlinux-linux
|
||||
source=(
|
||||
@ -21,7 +25,7 @@ validpgpkeys=(
|
||||
'8218F88849AAC522E94CF470A5E9288C4FA415FA' # Jan Alexander Steffens (heftig)
|
||||
)
|
||||
sha256sums=('SKIP'
|
||||
'bbf6f0f69de9b1aefc2374da6b289a132b945e87a94ec85728097c677ebbac3f')
|
||||
'b7f23bbc09b6c571b76f851f0389386a6f3a64f3d7b1b8509c8550228b0f4537')
|
||||
|
||||
export KBUILD_BUILD_HOST=archlinux
|
||||
export KBUILD_BUILD_USER=$pkgbase
|
||||
@ -54,7 +58,7 @@ prepare() {
|
||||
|
||||
build() {
|
||||
cd $_srcname
|
||||
make bzImage modules
|
||||
make bzImage modules htmldocs
|
||||
}
|
||||
|
||||
_package() {
|
||||
@ -163,7 +167,29 @@ _package-headers() {
|
||||
chmod -Rc u=rwX,go=rX "$pkgdir"
|
||||
}
|
||||
|
||||
pkgname=("$pkgbase" "$pkgbase-headers")
|
||||
_package-docs() {
|
||||
pkgdesc="Documentation for the $pkgdesc kernel"
|
||||
|
||||
cd $_srcname
|
||||
local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
|
||||
|
||||
msg2 "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)
|
||||
|
||||
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")
|
||||
for _p in "${pkgname[@]}"; do
|
||||
eval "package_$_p() {
|
||||
$(declare -f "_package${_p#$pkgbase}")
|
||||
|
Loading…
Reference in New Issue
Block a user