blob: a69626da9d2759d794cc02ac4a1aad35575ef0bd (
plain)
1 # Description: Framework and distribution system PHP
2 # URL: http://pear.php.net/
3 # Maintainer: Antti Nykanen, aon at iki dot fi
4 # Depends on: mod_php
5
6 name=pear
7 version=1.8.1
8 release=1
9 source=(http://pear.php.net/get/PEAR-$version.tgz \
10 http://pear.php.net/get/Archive_Tar-1.3.3.tgz \
11 http://pear.php.net/get/Console_Getopt-1.2.3.tgz
12 $name.conf http://www.varlock.com/files/$name-registry.tgz)
13
14 build() {
15 cd PEAR-$version
16 mkdir -p $PKG/usr/{bin,etc,share/pear/php}
17 cp -r {PEAR{,5}.php,System.php,PEAR,OS} $PKG/usr/share/pear/php
18 cp -r ../Archive*/Archive $PKG/usr/share/pear/php
19 cp -r ../Console*/Console $PKG/usr/share/pear/php
20 install -m 644 scripts/*.php $PKG/usr/share/pear/php
21 sed -i 's|@php_bin@|/usr/bin/php|g' scripts/{pear.sh,pecl.sh}
22 sed -i 's|@php_dir@|/usr/share/pear/php|g' scripts/{pear.sh,pecl.sh}
23 install -m 755 scripts/pear.sh $PKG/usr/bin/pear
24 install -m 755 scripts/pecl.sh $PKG/usr/bin/pecl
25 install -m 644 ../$name.conf $PKG/usr/etc
26 cp -r ../.registry $PKG/usr/share/pear/php
27
28 }
|