summaryrefslogtreecommitdiff
path: root/pear/Pkgfile
diff options
context:
space:
mode:
authorJose V Beneyto <sepen@crux.nu>2013-02-14 17:59:30 +0100
committerJose V Beneyto <sepen@crux.nu>2013-02-14 17:59:30 +0100
commit1125de70b333541c851bc8924da05e81d379783c (patch)
treef071b955fa0776356364a1b1f9c073055e7244a8 /pear/Pkgfile
parent32f9b8cad8646d1b614dc1a4fd24a51e5d43d8fa (diff)
downloadopt-1125de70b333541c851bc8924da05e81d379783c.tar.gz
opt-1125de70b333541c851bc8924da05e81d379783c.tar.xz
pear: rescued from orphans and updated to 1.9.4
Diffstat (limited to 'pear/Pkgfile')
-rw-r--r--pear/Pkgfile33
1 files changed, 33 insertions, 0 deletions
diff --git a/pear/Pkgfile b/pear/Pkgfile
new file mode 100644
index 000000000..5b2f53063
--- /dev/null
+++ b/pear/Pkgfile
@@ -0,0 +1,33 @@
+# Description: Framework and distribution system PHP
+# URL: http://pear.php.net/
+# Maintainer: Jose V Beneyto, sepen at crux dot nu
+# Packager: Antti Nykanen, aon at iki dot fi
+# Depends on: php
+
+name=pear
+version=1.9.4
+release=1
+source=(http://pear.php.net/get/PEAR-$version.tgz \
+ http://pear.php.net/get/Archive_Tar-1.3.11.tgz \
+ http://pear.php.net/get/Console_Getopt-1.3.1.tgz \
+ http://pear.php.net/get/Structures_Graph-1.0.4.tgz \
+ http://pear.php.net/get/XML_Util-1.2.1.tgz \
+ $name.conf $name-$version-registry.tar.xz)
+
+build() {
+ cd PEAR-$version
+ mkdir -p $PKG/usr/{bin,etc,share/pear/php}
+ cp -r {PEAR{,5}.php,System.php,PEAR,OS} $PKG/usr/share/pear/php
+ cp -r ../Archive*/Archive $PKG/usr/share/pear/php
+ cp -r ../Console*/Console $PKG/usr/share/pear/php
+ cp -r ../Structures*/Structures $PKG/usr/share/pear/php
+ cp -r ../XML*/Util.php $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
+
+}

Generated by cgit