wok-stable annotate linux-libre-api-headers/receipt @ rev 10401
usbutils: can't make udev look for usb.ids gziped in misc, so leave it in /usr/share
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue May 24 03:13:22 2011 +0200 (2011-05-24) |
parents | abe27fd0192d |
children | 903c03d31ebf |
rev | line source |
---|---|
gokhlayeh@9257 | 1 # SliTaz package receipt. |
gokhlayeh@9257 | 2 |
gokhlayeh@9257 | 3 PACKAGE="linux-libre-api-headers" |
gokhlayeh@9257 | 4 VERSION="2.6.37-libre" |
gokhlayeh@9257 | 5 CATEGORY="development" |
gokhlayeh@9257 | 6 SHORT_DESC="Kernel headers sanitized for use in userspace." |
gokhlayeh@9257 | 7 MAINTAINER="gokhlayeh@slitaz.org" |
gokhlayeh@9257 | 8 PROVIDE="linux-api-headers" |
gokhlayeh@9259 | 9 SOURCE="linux" |
gokhlayeh@9259 | 10 TARBALL="$SOURCE-$VERSION.tar.bz2" |
gokhlayeh@9257 | 11 WEB_SITE="http://www.fsfla.org/svnwiki/selibre/linux-libre/" |
gokhlayeh@9257 | 12 WGET_URL="http://www.fsfla.org/svnwiki/selibre/linux-libre/download/releases/$VERSION/$TARBALL" |
gokhlayeh@9257 | 13 |
gokhlayeh@9257 | 14 # Rules to compile & install the temporary toolchain. |
gokhlayeh@9257 | 15 cook_tmp_toolchain() |
gokhlayeh@9257 | 16 { |
gokhlayeh@9257 | 17 cd $src |
gokhlayeh@9257 | 18 |
gokhlayeh@9257 | 19 make mrproper && |
gokhlayeh@9257 | 20 make headers_check && |
gokhlayeh@9257 | 21 make INSTALL_HDR_PATH=dest headers_install && |
gokhlayeh@9257 | 22 cp -r dest/include/* /tools/include |
gokhlayeh@9257 | 23 } |
gokhlayeh@9257 | 24 |
gokhlayeh@9257 | 25 # Rules to configure and make the package. |
gokhlayeh@9257 | 26 compile_rules() |
gokhlayeh@9257 | 27 { |
gokhlayeh@9257 | 28 cd $src |
gokhlayeh@9257 | 29 |
gokhlayeh@9257 | 30 make mrproper && |
gokhlayeh@9257 | 31 make headers_check && |
gokhlayeh@9257 | 32 make INSTALL_HDR_PATH=$DESTDIR/usr headers_install |
gokhlayeh@9257 | 33 } |
gokhlayeh@9257 | 34 |
gokhlayeh@9257 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
gokhlayeh@9257 | 36 genpkg_rules() |
gokhlayeh@9257 | 37 { |
gokhlayeh@9257 | 38 mkdir -p $fs/usr |
gokhlayeh@9257 | 39 cp -a $_pkg/usr/include $fs/usr |
gokhlayeh@9257 | 40 |
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 |
gokhlayeh@9257 | 48 rm -rf $1/var/lib/tazpkg/installed/linux-libre-headers 2>/dev/null |
gokhlayeh@9257 | 49 } |