summaryrefslogtreecommitdiff
path: root/development/php-apcu/php-apcu.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/php-apcu/php-apcu.SlackBuild')
-rw-r--r--development/php-apcu/php-apcu.SlackBuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/development/php-apcu/php-apcu.SlackBuild b/development/php-apcu/php-apcu.SlackBuild
index 918cfe3780..d0bb3b8bc6 100644
--- a/development/php-apcu/php-apcu.SlackBuild
+++ b/development/php-apcu/php-apcu.SlackBuild
@@ -27,7 +27,7 @@
PRGNAM=php-apcu
SRCNAM=apcu
VERSION=${VERSION:-4.0.7}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -88,12 +88,15 @@ CXXFLAGS="$SLKCFLAGS" \
make
make INSTALL_ROOT=$PKG install
+mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/php/.pkgxml
+install -m 644 $TMP/package.xml $PKG/usr/lib$LIBDIRSUFFIX/php/.pkgxml/apcu.xml
+
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
# Copy default php configuration
-mkdir -p $PKG/etc/php
-cp -a $CWD/apc.ini $PKG/etc/php
+mkdir -p $PKG/etc/php.d
+cp -a $CWD/apcu.ini $PKG/etc/php.d/apcu.ini.new
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a LICENSE README.md NOTICE TECHNOTES.txt TODO $PKG/usr/doc/$PRGNAM-$VERSION
@@ -101,6 +104,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+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}