wok-next annotate linux-libre-api-headers/receipt @ rev 20845
Add neofetch, tcl2c-fork; build two versions of tklauncher (using tcl2c and tcl2c-fork) with different warnings
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Jun 23 09:45:42 2018 +0300 (2018-06-23) |
parents | 9e01bc6321ea |
children | d5aab818505e |
rev | line source |
---|---|
gokhlayeh@9257 | 1 # SliTaz package receipt. |
gokhlayeh@9257 | 2 |
gokhlayeh@9257 | 3 PACKAGE="linux-libre-api-headers" |
pascal@14201 | 4 VERSION="2.6.37-gnu" |
gokhlayeh@9257 | 5 CATEGORY="development" |
gokhlayeh@9257 | 6 SHORT_DESC="Kernel headers sanitized for use in userspace." |
gokhlayeh@9257 | 7 MAINTAINER="gokhlayeh@slitaz.org" |
pascal@14657 | 8 LICENSE="GPL2" |
gokhlayeh@9257 | 9 PROVIDE="linux-api-headers" |
pascal@14204 | 10 SOURCE="linux-libre" |
gokhlayeh@9259 | 11 TARBALL="$SOURCE-$VERSION.tar.bz2" |
gokhlayeh@9257 | 12 WEB_SITE="http://www.fsfla.org/svnwiki/selibre/linux-libre/" |
gokhlayeh@9257 | 13 WGET_URL="http://www.fsfla.org/svnwiki/selibre/linux-libre/download/releases/$VERSION/$TARBALL" |
gokhlayeh@9257 | 14 |
pascal@20324 | 15 BUILD_DEPENDS="perl" |
pascal@20324 | 16 |
gokhlayeh@9257 | 17 # Rules to compile & install the temporary toolchain. |
gokhlayeh@9257 | 18 cook_tmp_toolchain() |
gokhlayeh@9257 | 19 { |
gokhlayeh@9257 | 20 cd $src |
gokhlayeh@9257 | 21 make mrproper && |
gokhlayeh@9257 | 22 make headers_check && |
gokhlayeh@9257 | 23 make INSTALL_HDR_PATH=dest headers_install && |
gokhlayeh@9257 | 24 cp -r dest/include/* /tools/include |
gokhlayeh@9257 | 25 } |
gokhlayeh@9257 | 26 |
gokhlayeh@9257 | 27 # Rules to configure and make the package. |
gokhlayeh@9257 | 28 compile_rules() |
gokhlayeh@9257 | 29 { |
gokhlayeh@9257 | 30 cd $src |
gokhlayeh@9257 | 31 make mrproper && |
gokhlayeh@9257 | 32 make headers_check && |
gokhlayeh@9257 | 33 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install |
gokhlayeh@9257 | 34 } |
gokhlayeh@9257 | 35 |
gokhlayeh@9257 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
gokhlayeh@9257 | 37 genpkg_rules() |
gokhlayeh@9257 | 38 { |
gokhlayeh@9257 | 39 mkdir -p $fs/usr |
pascal@15603 | 40 cp -a $install/usr/include $fs/usr |
gokhlayeh@9257 | 41 rm -f $(find ${fs} -name .install -or -name ..install.cmd) |
gokhlayeh@9257 | 42 } |
gokhlayeh@9257 | 43 |
gokhlayeh@9257 | 44 # Post install commands for Tazpkg. |
gokhlayeh@9257 | 45 post_install() |
gokhlayeh@9257 | 46 { |
gokhlayeh@9257 | 47 # Removed old linux-libre-headers |
pascal@18730 | 48 [ ! -d "$1/var/lib/tazpkg/installed/linux-libre-headers" ] || |
pascal@18730 | 49 rm -rf "$1/var/lib/tazpkg/installed/linux-libre-headers" |
gokhlayeh@9257 | 50 } |