summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2013-10-15 04:38:36 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2013-10-15 04:38:36 -0200
commit56f6f9c911669f97e176a0de9308bed54d734fc5 (patch)
treef541eb35fa3ab5f085fc5e0c3ed21e2579c43982
parent288a5a29325dfc72c1ab795b744e32c498738a7b (diff)
downloadabslibre-56f6f9c911669f97e176a0de9308bed54d734fc5.tar.gz
abslibre-56f6f9c911669f97e176a0de9308bed54d734fc5.tar.bz2
abslibre-56f6f9c911669f97e176a0de9308bed54d734fc5.zip
linux-libre-rt: add linux-libre-rt-docs package
-rw-r--r--kernels/linux-libre-rt/PKGBUILD19
1 files changed, 18 insertions, 1 deletions
diff --git a/kernels/linux-libre-rt/PKGBUILD b/kernels/linux-libre-rt/PKGBUILD
index 714b6d75c..d90aaac40 100644
--- a/kernels/linux-libre-rt/PKGBUILD
+++ b/kernels/linux-libre-rt/PKGBUILD
@@ -400,7 +400,24 @@ _package-headers() {
fi
}
-pkgname=("${pkgbase}" "${pkgbase}-headers")
+_package-docs() {
+ pkgdesc="Kernel hackers manual - HTML documentation that comes with the ${pkgbase^} kernel"
+ provides=("kernel26${_kernelname}-docs=${pkgver}" "linux${_kernelname}-docs=${pkgver}")
+ conflicts=("kernel26${_kernelname}-docs" "kernel26-libre${_kernelname}-docs" "linux${_kernelname}-docs")
+ replaces=("kernel26${_kernelname}-docs" "kernel26-libre${_kernelname}-docs" "linux${_kernelname}-docs")
+
+ cd "${srcdir}/linux-${_basekernel}"
+
+ mkdir -p "${pkgdir}/usr/src/linux-${_kernver}"
+ cp -al Documentation "${pkgdir}/usr/src/linux-${_kernver}"
+ find "${pkgdir}" -type f -exec chmod 444 {} \;
+ find "${pkgdir}" -type d -exec chmod 755 {} \;
+
+ # remove a file already in linux package
+ rm -f "${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile"
+}
+
+pkgname=("${pkgbase}" "${pkgbase}-headers" "${pkgbase}-docs")
for _p in ${pkgname[@]}; do
eval "package_${_p}() {
_package${_p#${pkgbase}}