diff options
author | Heinz Wiesinger <pprkut@slackbuilds.org> | 2016-02-06 23:33:49 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-02-07 15:06:56 +0700 |
commit | ee09f3f1aab10133586ac9526c1a2f7097e2ab5f (patch) | |
tree | 1af96f803e5532237ce6ce1275a9407c21615e7f /libraries/php-ssh2/php-ssh2.SlackBuild | |
parent | 4bbd289c7c30a1df0d640f16658dca7c0cc69f59 (diff) |
libraries/php-ssh2: Fix php ini file location.
Also added missing pecl registration.
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'libraries/php-ssh2/php-ssh2.SlackBuild')
-rw-r--r-- | libraries/php-ssh2/php-ssh2.SlackBuild | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/libraries/php-ssh2/php-ssh2.SlackBuild b/libraries/php-ssh2/php-ssh2.SlackBuild index 9d7396544bda..238f232ad11e 100644 --- a/libraries/php-ssh2/php-ssh2.SlackBuild +++ b/libraries/php-ssh2/php-ssh2.SlackBuild @@ -25,7 +25,7 @@ SRCNAM=ssh2 PRGNAM=php-ssh2 VERSION=${VERSION:-0.12} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -89,11 +89,14 @@ CXXFLAGS="$SLKCFLAGS" \ make EXTENSION_DIR="$PKG/$($PHP_CONFIG --extension-dir)" -mkdir -p $EXTENSION_DIR $PKG/etc/php +mkdir -p $EXTENSION_DIR $PKG/etc/php.d make install DESTDIR=$PKG EXTENSION_DIR=$EXTENSION_DIR -install -m 644 $CWD/ssh2.ini $PKG/etc/php/ssh2.ini.new +mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/php/.pkgxml +install -m 644 $TMP/package.xml $PKG/usr/lib$LIBDIRSUFFIX/php/.pkgxml/ssh2.xml + +install -m 644 $CWD/ssh2.ini $PKG/etc/php.d/ssh2.ini.new find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true @@ -104,7 +107,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc -cat $CWD/doinst.sh > $PKG/install/doinst.sh +sed "s|LIBDIRSUFFIX|$LIBDIRSUFFIX|" $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |