diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2013-10-15 04:39:03 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2013-10-15 04:39:03 -0200 |
commit | 478a9ff2493078c6bd69d6ce7a7004bd066705db (patch) | |
tree | 9a271f54b94f2fbc75bb606fde7b125ad458205c /kernels | |
parent | 56f6f9c911669f97e176a0de9308bed54d734fc5 (diff) | |
download | abslibre-478a9ff2493078c6bd69d6ce7a7004bd066705db.tar.gz abslibre-478a9ff2493078c6bd69d6ce7a7004bd066705db.tar.bz2 abslibre-478a9ff2493078c6bd69d6ce7a7004bd066705db.zip |
linux-libre-xen: add linux-libre-xen-docs package
Diffstat (limited to 'kernels')
-rw-r--r-- | kernels/linux-libre-xen/PKGBUILD | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/kernels/linux-libre-xen/PKGBUILD b/kernels/linux-libre-xen/PKGBUILD index 408a42b0d..2fce65168 100644 --- a/kernels/linux-libre-xen/PKGBUILD +++ b/kernels/linux-libre-xen/PKGBUILD @@ -304,9 +304,25 @@ _package-headers() { # remove unneeded architectures rm -rf "${pkgdir}"/usr/src/linux-${_kernver}/arch/{alpha,arc,arm,arm26,arm64,avr32,blackfin,c6x,cris,frv,h8300,hexagon,ia64,m32r,m68k,m68knommu,metag,mips,microblaze,mn10300,openrisc,parisc,powerpc,ppc,s390,score,sh,sh64,sparc,sparc64,tile,unicore32,um,v850,xtensa} + +_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") +pkgname=("${pkgbase}" "${pkgbase}-headers" "${pkgbase}-docs") for _p in ${pkgname[@]}; do eval "package_${_p}() { _package${_p#${pkgbase}} |