blob: 5b2f5306300c5abd7f821401c164a91a3a8bfc4b (
plain)
1 # Description: Framework and distribution system PHP
2 # URL: http://pear.php.net/
3 # Maintainer: Jose V Beneyto, sepen at crux dot nu
4 # Packager: Antti Nykanen, aon at iki dot fi
5 # Depends on: php
6
7 name=pear
8 version=1.9.4
9 release=1
10 source=(http://pear.php.net/get/PEAR-$version.tgz \
11 http://pear.php.net/get/Archive_Tar-1.3.11.tgz \
12 http://pear.php.net/get/Console_Getopt-1.3.1.tgz \
13 http://pear.php.net/get/Structures_Graph-1.0.4.tgz \
14 http://pear.php.net/get/XML_Util-1.2.1.tgz \
15 $name.conf $name-$version-registry.tar.xz)
16
17 build() {
18 cd PEAR-$version
19 mkdir -p $PKG/usr/{bin,etc,share/pear/php}
20 cp -r {PEAR{,5}.php,System.php,PEAR,OS} $PKG/usr/share/pear/php
21 cp -r ../Archive*/Archive $PKG/usr/share/pear/php
22 cp -r ../Console*/Console $PKG/usr/share/pear/php
23 cp -r ../Structures*/Structures $PKG/usr/share/pear/php
24 cp -r ../XML*/Util.php $PKG/usr/share/pear/php
25 install -m 644 scripts/*.php $PKG/usr/share/pear/php
26 sed -i 's|@php_bin@|/usr/bin/php|g' scripts/{pear.sh,pecl.sh}
27 sed -i 's|@php_dir@|/usr/share/pear/php|g' scripts/{pear.sh,pecl.sh}
28 install -m 755 scripts/pear.sh $PKG/usr/bin/pear
29 install -m 755 scripts/pecl.sh $PKG/usr/bin/pecl
30 install -m 644 ../$name.conf $PKG/usr/etc
31 cp -r ../.registry $PKG/usr/share/pear/php
32
33 }
|