From 12a2dea8f3dd3356590b9f846dccc7a5ca41d7dc Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Fri, 22 Jul 2011 15:19:36 +0000 Subject: [PATCH] add replaces for docs and headers --- PKGBUILD | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index a662fb7..5f6c641 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -109,6 +109,7 @@ package_linux() { package_linux-headers() { pkgdesc="Header files and scripts for building modules for linux kernel" + replaces=('kernel26-headers') mkdir -p ${pkgdir}/lib/modules/${_kernver} cd ${pkgdir}/lib/modules/${_kernver} ln -sf ../../../usr/src/linux-${_kernver} build @@ -217,13 +218,13 @@ package_linux-headers() { } package_linux-docs() { -pkgdesc="Kernel hackers manual - HTML documentation that comes with the Linux kernel." - -cd ${srcdir}/linux-$_basekernel -mkdir -p $pkgdir/usr/src/linux-$_kernver -mv 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 + pkgdesc="Kernel hackers manual - HTML documentation that comes with the Linux kernel." + replaces=('kernel26-doccs') + cd ${srcdir}/linux-$_basekernel + mkdir -p $pkgdir/usr/src/linux-$_kernver + mv 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 }