diff options
Diffstat (limited to 'kernels/linux-libre-rt/PKGBUILD')
-rw-r--r-- | kernels/linux-libre-rt/PKGBUILD | 34 |
1 files changed, 25 insertions, 9 deletions
diff --git a/kernels/linux-libre-rt/PKGBUILD b/kernels/linux-libre-rt/PKGBUILD index 5f310ddc0..cd9ddeb34 100644 --- a/kernels/linux-libre-rt/PKGBUILD +++ b/kernels/linux-libre-rt/PKGBUILD @@ -1,21 +1,20 @@ -# $Id: PKGBUILD 193761 2013-08-30 11:11:43Z tpowa $ # Maintainer: Joakim Hernberg <jbh@alchemy.lu> # Contributor: Ray Rashif <schiv@archlinux.org> # Contributor: timbosa <tinny_tim@dodo.com.au> # Contributor: Tobias Powalowski <tpowa@archlinux.org> # Contributor: Thomas Baechler <thomas@archlinux.org> -# Maintainer (Parabola): André Silva <emulatorman@lavabit.com> +# Maintainer (Parabola): André Silva <emulatorman@parabola.nu> # Contributor (Parabola): Márcio Silva <coadde@lavabit.com> pkgbase=linux-libre-rt # Build stock -LIBRE-RT kernel #pkgbase=linux-libre-custom # Build kernel with a different name _basekernel=3.10 -_releasever=14 -_rtpatchver=rt9 +_releasever=15 +_rtpatchver=rt11 _pkgver=${_basekernel}.${_releasever} pkgver=${_basekernel}.${_releasever}_${_rtpatchver} pkgrel=1 -_lxopkgver=${_basekernel}.14 # nearly always the same as pkgver +_lxopkgver=${_basekernel}.15 # nearly always the same as pkgver arch=('i686' 'x86_64' 'mips64el') url="http://linux-libre.fsfla.org/" license=('GPL2') @@ -36,8 +35,8 @@ source=("http://linux-libre.fsfla.org/pub/linux-libre/releases/${_basekernel}-gn '3.10.6-logitech-dj.patch' "http://www.linux-libre.fsfla.org/pub/linux-libre/lemote/gnewsense/pool/debuginfo/linux-patches-${_lxopkgver}-gnu_0loongsonlibre_mipsel.tar.bz2") md5sums=('d562fd52580a3b6b18b6eeb5921d1d5c' - '33e33cc6a9f3f3fc0a760e9920bedc8b' - '303d1fbf2f5144628d67b65509325c52' + '9d85508aaa75442ec6e480a248102c5a' + 'b3aafcfa4c1613460b2bd29a2c1c3421' 'aee046ea7320dce066bb180facd7262a' 'c21fb94a198752879b059a08d73cd3a6' '82496e68851d1960543a07ba51cdb44a' @@ -47,7 +46,7 @@ md5sums=('d562fd52580a3b6b18b6eeb5921d1d5c' 'f3def2cefdcbb954c21d8505d23cc83c' 'd50c1ac47394e9aec637002ef3392bd1' '3ff40ca684cfe719723e627e2cef7cea' - '832d858c373a180f5e1ac407049ce652') + '8aab6ab727f49dffcae5fd1c3c7c5bdb') if [ "$CARCH" != "mips64el" ]; then # don't use the Loongson-specific patches on non-mips64el arches. unset source[${#source[@]}-1] @@ -401,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}} |