wok view linux-cloop/receipt @ rev 25040

cups-filters: use standard c++14
author Hans-G?nter Theisgen
date Fri May 27 07:47:27 2022 +0100 (2022-05-27)
parents 97e141edc8c2
children f082c8c505e6
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-cloop"
4 SOURCE="cloop"
5 _VERSION="3.14.1.3"
6 VERSION="4.12"
7 CATEGORY="base-system"
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 SHORT_DESC="The read-only compressed loop device kernel module."
11 WEB_SITE="http://knoppix.net/wiki/Cloop"
12 TARBALL="${SOURCE}_${_VERSION}.tar.xz"
13 WGET_URL="http://deb.debian.org/debian/pool/main/c/$SOURCE/$TARBALL"
15 DEPENDS="linux"
16 BUILD_DEPENDS="linux-module-headers xz"
17 SUGGESTED="cloop-utils"
19 # Rules to configure and make the package.
21 compile_rules()
22 {
23 patch -p0 < $stuff/cloop.u
24 make ARCH=i386 KERNEL_DIR="/usr/src/linux" cloop.ko && xz cloop.ko
25 make cloop_suspend
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 }