2006-02-23 15:26:10 +00:00
|
|
|
# Description: Framework and distribution system PHP
|
|
|
|
# URL: http://pear.php.net/
|
2009-05-10 13:17:06 +03:00
|
|
|
# Maintainer: Antti Nykanen, aon at iki dot fi
|
2006-02-23 15:26:10 +00:00
|
|
|
# Depends on: mod_php
|
|
|
|
|
|
|
|
name=pear
|
2009-05-10 20:31:39 +03:00
|
|
|
version=1.8.1
|
|
|
|
release=1
|
2006-02-23 15:26:10 +00:00
|
|
|
source=(http://pear.php.net/get/PEAR-$version.tgz \
|
2009-05-10 20:31:39 +03:00
|
|
|
http://pear.php.net/get/Archive_Tar-1.3.3.tgz \
|
|
|
|
http://pear.php.net/get/Console_Getopt-1.2.3.tgz
|
2006-02-23 15:26:10 +00:00
|
|
|
$name.conf http://www.varlock.com/files/$name-registry.tgz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd PEAR-$version
|
|
|
|
mkdir -p $PKG/usr/{bin,etc,share/pear/php}
|
2009-05-10 20:31:39 +03:00
|
|
|
cp -r {PEAR{,5}.php,System.php,PEAR,OS} $PKG/usr/share/pear/php
|
2006-02-23 15:26:10 +00:00
|
|
|
cp -r ../Archive*/Archive $PKG/usr/share/pear/php
|
|
|
|
cp -r ../Console*/Console $PKG/usr/share/pear/php
|
|
|
|
install -m 644 scripts/*.php $PKG/usr/share/pear/php
|
|
|
|
sed -i 's|@php_bin@|/usr/bin/php|g' scripts/{pear.sh,pecl.sh}
|
|
|
|
sed -i 's|@php_dir@|/usr/share/pear/php|g' scripts/{pear.sh,pecl.sh}
|
|
|
|
install -m 755 scripts/pear.sh $PKG/usr/bin/pear
|
|
|
|
install -m 755 scripts/pecl.sh $PKG/usr/bin/pecl
|
|
|
|
install -m 644 ../$name.conf $PKG/usr/etc
|
|
|
|
cp -r ../.registry $PKG/usr/share/pear/php
|
|
|
|
|
|
|
|
}
|