wok-next diff linux-man/receipt @ rev 20052

claws-mail: receipt v2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Oct 23 17:09:27 2017 +0200 (2017-10-23)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/linux-man/receipt	Mon Oct 23 17:09:27 2017 +0200
     1.3 @@ -0,0 +1,49 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="linux-man"
     1.7 +VERSION="4.9.4"
     1.8 +KBASEVER="4.9"
     1.9 +CATEGORY="doc"
    1.10 +SHORT_DESC="The Linux Kernel man pages"
    1.11 +MAINTAINER="devel@slitaz.org"
    1.12 +LICENSE="GPL2"
    1.13 +WEB_SITE="https://www.kernel.org/"
    1.14 +
    1.15 +TARBALL="linux-$KBASEVER.tar.xz"
    1.16 +WGET_URL="https://www.kernel.org/pub/linux/kernel/v4.x/$TARBALL"
    1.17 +
    1.18 +BUILD_DEPENDS="python-sphinx perl xmlto util-linux-getopt docbook-xsl \
    1.19 +coreutils-operations findutils"
    1.20 +SIBLINGS="linux linux-api-headers linux-dev"
    1.21 +
    1.22 +if [ "$KBASEVER" != "${VERSION%.0}" ]; then
    1.23 +	PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz"
    1.24 +	EXTRA_SOURCE_FILES="$(basename $PATCH)"
    1.25 +fi
    1.26 +
    1.27 +# Rules to configure and make the package.
    1.28 +compile_rules()
    1.29 +{
    1.30 +	# Update sources to the $VERSION using base sources ($KBASEVER) and patch
    1.31 +	if [ "$KBASEVER" != "${VERSION%.0}" ]; then
    1.32 +		[ -s $SRC/$(basename $PATCH) ] || wget $PATCH -O $SRC/$(basename $PATCH)
    1.33 +		# don't patch twice for `cook $PACKAGE --continue`
    1.34 +		if [ ! -f "done.patch-$VERSION" ]; then
    1.35 +			xzcat $SRC/$(basename $PATCH) | patch -Np1
    1.36 +			touch done.patch-$VERSION
    1.37 +		fi
    1.38 +	fi
    1.39 +
    1.40 +	# Get and apply Aufs patches
    1.41 +	. $WOK/linux/stuff/tools/aufs-patches
    1.42 +
    1.43 +	patch -p1 -i $stuff/installmandocs.patch
    1.44 +
    1.45 +	make mandocs && make installmandocs
    1.46 +}
    1.47 +
    1.48 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.49 +genpkg_rules()
    1.50 +{
    1.51 +	cp -a $install/* $fs
    1.52 +}