wok-current view linux-cloop/receipt @ rev 24809
created recipes for libmypaint, libmypaint-dev and libmypaint-lang
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 22 16:52:59 2022 +0100 (2022-03-22) |
parents | 36e9a3dcd5de |
children | 5a92a26adcc1 |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-cloop"
4 SOURCE="cloop"
5 _VERSION="2.639-2"
6 #VERSION="$(sed '/+#define CLOOP_VERSION/!d;s|.* "\(.*\)"|\1|' stuff/cloop.u)"
7 VERSION="4.12"
8 CATEGORY="base-system"
9 MAINTAINER="pascal.bellard@slitaz.org"
10 LICENSE="GPL2"
11 SHORT_DESC="The read-only compressed loop device kernel module."
12 WEB_SITE="http://knoppix.net/wiki/Cloop"
13 TARBALL="${SOURCE}_${_VERSION}.tar.gz"
14 WGET_URL="http://debian-knoppix.alioth.debian.org/packages/$SOURCE/$TARBALL"
16 DEPENDS="linux"
17 BUILD_DEPENDS="linux-module-headers xz"
18 SUGGESTED="cloop-utils"
20 # Rules to configure and make the package.
22 compile_rules()
23 {
24 patch -p0 < $stuff/cloop.u
25 make ARCH=i386 KERNEL_DIR="/usr/src/linux" cloop.ko && xz cloop.ko
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 EXTRAVERSION=_$kvers
32 mkdir -p $fs/lib/modules/$kvers-slitaz/kernel/misc $fs/dev $fs/usr/bin
33 cp $src/cloop_suspend $fs/usr/bin
34 cp $src/cloop.ko.xz $fs/lib/modules/$kvers-slitaz/kernel/misc
35 for i in $(seq 0 7); do
36 mknod $fs/dev/cloop$i b 240 $i
37 done
38 }
40 post_install()
41 {
42 chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
43 }
45 post_remove()
46 {
47 depmod -a
48 }