wok-next annotate linux-man/receipt @ rev 20212

Up consonance (0.5.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Nov 04 18:41:56 2017 +0100 (2017-11-04)
parents
children
rev   line source
al@19595 1 # SliTaz package receipt.
al@19595 2
al@19595 3 PACKAGE="linux-man"
al@19595 4 VERSION="4.9.4"
al@19595 5 KBASEVER="4.9"
al@19595 6 CATEGORY="doc"
al@19595 7 SHORT_DESC="The Linux Kernel man pages"
al@19595 8 MAINTAINER="devel@slitaz.org"
al@19595 9 LICENSE="GPL2"
al@19595 10 WEB_SITE="https://www.kernel.org/"
al@19595 11
al@19595 12 TARBALL="linux-$KBASEVER.tar.xz"
al@19595 13 WGET_URL="https://www.kernel.org/pub/linux/kernel/v4.x/$TARBALL"
al@19595 14
al@19595 15 BUILD_DEPENDS="python-sphinx perl xmlto util-linux-getopt docbook-xsl \
al@19595 16 coreutils-operations findutils"
al@19595 17 SIBLINGS="linux linux-api-headers linux-dev"
al@19595 18
al@19595 19 if [ "$KBASEVER" != "${VERSION%.0}" ]; then
al@19595 20 PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz"
al@19595 21 EXTRA_SOURCE_FILES="$(basename $PATCH)"
al@19595 22 fi
al@19595 23
al@19595 24 # Rules to configure and make the package.
al@19595 25 compile_rules()
al@19595 26 {
al@19595 27 # Update sources to the $VERSION using base sources ($KBASEVER) and patch
al@19595 28 if [ "$KBASEVER" != "${VERSION%.0}" ]; then
al@19595 29 [ -s $SRC/$(basename $PATCH) ] || wget $PATCH -O $SRC/$(basename $PATCH)
al@19595 30 # don't patch twice for `cook $PACKAGE --continue`
al@19595 31 if [ ! -f "done.patch-$VERSION" ]; then
al@19595 32 xzcat $SRC/$(basename $PATCH) | patch -Np1
al@19595 33 touch done.patch-$VERSION
al@19595 34 fi
al@19595 35 fi
al@19595 36
al@19595 37 # Get and apply Aufs patches
al@19595 38 . $WOK/linux/stuff/tools/aufs-patches
al@19595 39
al@19595 40 patch -p1 -i $stuff/installmandocs.patch
al@19595 41
al@19595 42 make mandocs && make installmandocs
al@19595 43 }
al@19595 44
al@19595 45 # Rules to gen a SliTaz package suitable for Tazpkg.
al@19595 46 genpkg_rules()
al@19595 47 {
al@19595 48 cp -a $install/* $fs
al@19595 49 }