wok-next view compcache/receipt @ rev 12526
Clean up xine-ui (Keep it small please!)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 25 00:40:43 2012 +0200 (2012-04-25) |
parents | 0b4cf0d9e1b5 |
children | 199632c45ba9 |
line source
1 # SliTaz package receipt.
3 PACKAGE="compcache"
4 VERSION="0.6.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="Compressed caching"
7 MAINTAINER="fabrice.thiroux@free.fr"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://code.google.com/p/compcache/"
10 WGET_URL="http://compcache.googlecode.com/files/$TARBALL"
12 DEPENDS="linux"
13 BUILD_DEPENDS="lzma linux-module-headers"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 KERNEL_VERSION=`grep ^VERSION= $WOK/linux/receipt | \
19 cut -d "=" -f2 | sed -e 's/"//g'`
20 cd $src
22 # Fix build with kernel 2.6.34
23 patch -p1 < $stuff/compcache-0.6.2-linux-2.6.34.u || return 1
25 find -name Makefile | xargs sed -i \
26 "s|/lib/modules/\$(shell uname -r)/build|/usr/src/linux|"
27 make KBUILD=/usr/src/linux KVER=$KERNEL_VERSION
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 KERNEL_VERSION=$(grep ^VERSION= $WOK/linux/receipt | \
34 cut -d "=" -f2 | sed -e 's/"//g')
35 EXTRAVERSION=_$KERNEL_VERSION
37 mkdir -p $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc \
38 $fs/etc/init.d \
39 $fs/usr/bin
41 install -o root -m 644 $src/ramzswap.ko \
42 $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc
43 cp -a $src/sub-projects/rzscontrol/rzscontrol $fs/usr/bin
45 for i in $fs/lib/modules/$KERNEL_VERSION-slitaz/kernel/misc/*.ko ; do
46 lzma e $i $i.gz && rm -f $i
47 done
48 install -o root -m 755 $stuff/compcache $fs/etc/init.d/
49 install -o root -m 644 $stuff/compcache.conf $fs/etc/
50 }
52 post_install()
53 {
54 echo "Processing post-install commands..."
55 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
56 }
58 post_remove()
59 {
60 echo "Processing post-remove commands..."
61 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
62 }