wok-current view php-common/receipt @ rev 24746
ncursesw-dev: add pkg config files (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Mar 16 11:02:39 2022 +0000 (2022-03-16) |
parents | b10d41313e54 |
children | a23978bfa665 |
line source
1 # SliTaz package receipt.
3 PACKAGE="php-common"
4 VERSION="7.4.4"
5 CATEGORY="development"
6 SHORT_DESC="Common files for PHP modules."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="https://www.php.net/"
11 WANTED="php"
13 CONFIG_FILES="/etc/php.ini"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 mkdir -p $fs/etc
19 mkdir -p $fs/usr/share/applications
20 mkdir -p $fs/usr/share/pixmaps
22 cp -a $stuff/phpinfo $fs/usr/share
23 cp $stuff/php.desktop $fs/usr/share/applications
24 cp $stuff/php.png $fs/usr/share/pixmaps
25 cp $install/etc/php.ini $fs/etc
27 sed -i 's|.*\(extension_dir.*/usr/share/php.*\)$|\1|' \
28 $fs/etc/php.ini
29 }
31 # Post and pre install commands
32 pre_install()
33 {
34 # Backup existing php.ini
35 if [ -f "$1/etc/php.ini" ]
36 then
37 echo
38 echo -n "Creating php.ini backup..."
39 cp "$1/etc/php.ini" "$1/etc/php.ini.bak"
40 status
41 fi
42 }
43 post_install()
44 {
45 # Restore original php.ini
46 if [ -f "$1/etc/php.ini.bak" ]
47 then
48 echo
49 echo -n "Restoring php.ini backup..."
50 mv -f "$1/etc/php.ini.bak" "$1/etc/php.ini"
51 status
52 fi
53 }