
Receipt for package "linux-api-headers"
# SliTaz package receipt. PACKAGE="linux-api-headers" VERSION="3.16.55" KBASEVER="${VERSION%.*}" CATEGORY="development" SHORT_DESC="Kernel headers sanitized for use in userspace." MAINTAINER="devel@slitaz.org" LICENSE="GPL2" SOURCE="linux" TARBALL="$SOURCE-$KBASEVER.tar.xz" WEB_SITE="https://www.kernel.org/" WGET_URL="https://www.kernel.org/pub/linux/kernel/v3.0/$TARBALL" PROVIDE="linux-headers linux64-api-headers linux64-headers" BUILD_DEPENDS="bash wget" [ "$KBASEVER" != "$VERSION" ] && PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz" && EXTRA_SOURCE_FILES="$(basename $PATCH)" # What is the latest version available today? current_version() { wget -O - $WEB_SITE 2> /dev/null | grep -A 1 longterm | \ sed '/strong/!d;s|.*<strong>||;s|</s.*||;q' } # Rules to compile & install the temporary toolchain. cook_tmp_toolchain() { cd $src make mrproper && make headers_check && make INSTALL_HDR_PATH=dest headers_install && cp -r dest/include/* /tools/include } # Rules to configure and make the package. compile_rules() { cd $src if [ "$KBASEVER" != "$VERSION" ]; then [ -s $SRC/$(basename $PATCH) ] || wget --no-check-certificate $PATCH -O $SRC/$(basename $PATCH) xzcat $SRC/$(basename $PATCH) | patch -Np1 touch done.patch-$VERSION fi make mrproper && make headers_check && make INSTALL_HDR_PATH=$DESTDIR/usr headers_install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $install/usr/include $fs/usr rm -f $(find ${fs} -name .install -or -name ..install.cmd) } # Post install commands for Tazpkg. post_install() { # Removed old linux-headers rm -rf ${1}${INSTALLED}/linux-headers 2>/dev/null }
6011 packages and 861692 files in cooking database (Sun Apr 20 00:48:06 2025)