wok-next view linux-dev/receipt @ rev 19979
Up libdrm (2.4.82), wayland (1.14.0)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Oct 18 03:31:51 2017 +0300 (2017-10-18) |
parents | 960a052d15d3 |
children | e93a94f7f25b |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-dev"
4 VERSION="4.9.4"
5 KBASEVER="4.9"
6 CATEGORY="development"
7 SHORT_DESC="Menu based tool to configure the Linux Kernel"
8 MAINTAINER="devel@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://www.kernel.org/"
12 TARBALL="linux-$KBASEVER.tar.xz"
13 WGET_URL="https://www.kernel.org/pub/linux/kernel/v4.x/$TARBALL"
15 DEPENDS="ncurses"
16 BUILD_DEPENDS="ncurses-dev patch"
17 SIBLINGS="linux linux-api-headers linux-man"
18 COOKOPTS="!pngz !svgz !uiz"
20 if [ "$KBASEVER" != "${VERSION%.0}" ]; then
21 PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz"
22 EXTRA_SOURCE_FILES="$(basename $PATCH)"
23 fi
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # Update sources to the $VERSION using base sources ($KBASEVER) and patch
29 if [ "$KBASEVER" != "${VERSION%.0}" ]; then
30 [ -s $SRC/$(basename $PATCH) ] || wget $PATCH -O $SRC/$(basename $PATCH)
31 # don't patch twice for `cook $PACKAGE --continue`
32 if [ ! -f "done.patch-$VERSION" ]; then
33 xzcat $SRC/$(basename $PATCH) | patch -Np1
34 touch done.patch-$VERSION
35 fi
36 fi
38 # Get and apply Aufs patches
39 . $WOK/linux/stuff/tools/aufs-patches
41 make defconfig
42 make menuconfig 2>&1 | grep -v Error
44 p="$install/usr/src/linux-$VERSION-slitaz"
45 mkdir -p $p
46 cp -a $src/* $src/.config $p
48 mkdir -p $install/usr/bin
49 mv $p/scripts/kconfig/mconf $install/usr/bin
50 cat > $install/usr/bin/menuconfig <<EOT
51 #!/bin/sh
52 p=\$PWD
53 cd ../src/linux-$VERSION-slitaz
54 SRCARCH=x86 ARCH=i386 KERNELVERSION=$VERSION \$p/mconf Kconfig
55 EOT
56 chmod a+x $install/usr/bin/menuconfig
57 }
59 # Rules to gen a SliTaz package suitable for Tazpkg.
60 genpkg_rules()
61 {
62 copy Kconfig* mconf menuconfig .config
63 }