aboutsummaryrefslogtreecommitdiff
path: root/libraries/php-memcache/php-memcache.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/php-memcache/php-memcache.SlackBuild')
-rw-r--r--libraries/php-memcache/php-memcache.SlackBuild11
1 files changed, 7 insertions, 4 deletions
diff --git a/libraries/php-memcache/php-memcache.SlackBuild b/libraries/php-memcache/php-memcache.SlackBuild
index a63b9c7b97c1a..b59144e21979a 100644
--- a/libraries/php-memcache/php-memcache.SlackBuild
+++ b/libraries/php-memcache/php-memcache.SlackBuild
@@ -25,7 +25,7 @@
SRCNAM=memcache
PRGNAM=php-memcache
VERSION=${VERSION:-3.0.7}
-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/memcache.ini $PKG/etc/php/memcache.ini.new
+mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/php/.pkgxml
+install -m 644 $TMP/package.xml $PKG/usr/lib$LIBDIRSUFFIX/php/.pkgxml/memcache.xml
+
+install -m 644 $CWD/memcache.ini $PKG/etc/php.d/memcache.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
@@ -105,7 +108,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}