wok view cookutils/receipt @ rev 22450
vlc: remove libav-dev and restore configure to old
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Mon Dec 23 16:30:52 2019 +0000 (2019-12-23) |
parents | 97b8cb8c268b |
children | 2a588e4793bc |
line source
1 # SliTaz package receipt.
3 PACKAGE="cookutils"
4 VERSION="887"
5 CATEGORY="base-system"
6 SHORT_DESC="SliTaz packages builder new generation."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="http://www.slitaz.org/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="http://hg.slitaz.org/$PACKAGE/archive/$VERSION.tar.gz"
12 TAGS="slitaz"
13 HOST_ARCH="i486 arm"
14 CONFIG_FILES="/etc/slitaz/cook.site /etc/slitaz/cook.conf"
16 DEPENDS="sdft"
17 SPLIT="cookutils-daemon"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 sed -i 's|\. receipt|. ./receipt|' cook
23 patch -p1 -i $stuff/pkgdb-absolute.patch
24 patch -p1 -i $stuff/pkgdb-no-parallel.patch
25 patch -p1 -i $stuff/cook-newest.patch
26 sed -i 's|preinit core-4in1|preinit core-4in1 core-5in1|' cookiso
27 mkdir -p $DESTDIR/usr/bin $DESTDIR/etc/slitaz
28 make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs
35 cp -a $install/* $fs
36 #Symlink cooker to busybox httpd server root
37 cd $fs/var/www
38 ln -s cgi-bin/cooker
39 # Daemon goes in cookutils-daemon
40 rm -rf $fs/etc/init.d
41 }
43 # Pre and post install commands for Tazpkg.
44 post_install()
45 {
46 case "$(cat "$1/etc/hostname" 2> /dev/null)" in
47 tank*)
48 if ! chroot "$1/" tazpkg list | grep -q aufs ; then
49 tazpkg get-install aufs --root="$1/"
50 sed -i 's/LOAD_MODULES="/&aufs /' "$1/etc/rcS.conf"
51 fi ;;
52 esac
53 }