LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   slackbuid for Phalcon PHP framework (http://www.linuxquestions.org/questions/slackware-14/slackbuid-for-phalcon-php-framework-4175486227/)

urulab 11-29-2013 04:08 AM

slackbuid for Phalcon PHP framework
 
I'm a web developer with Phalcon PHP Framework
on slackware-current-x86_64.

Below I leave the SlackBuild corresponding to said framework.

Best regards. --cesar


Quote:

PKGNAME="phalcon"
VERSION="1.2.4"
BUILD="1"
CWD=$(pwd)
TMP="/tmp"
PKG=${TMP}/package-${PKGNAME}
ARCH="x86_64"
SLKLDFLAGS="-L/lib64 -L/usr/lib64";
SLKCFLAGS="-O2 -fPIC -pipe -fomit-frame-pointer";

rm -rf ${PKG}
mkdir -p ${PKG}
cd ${TMP}
rm -rf ${PKGNAME}-${VERSION} package-${PKGNAME}
tar xzvf ${CWD}/${PKGNAME}-v-${VERSION}.tar.gz
mv c${PKGNAME}-${VERSION} ${PKGNAME}-${VERSION}
cd ${PKGNAME}-${VERSION}/build/64bits
chown -R root:root .
chmod -R u+w,go+r-w,a-s .

phpize --clean
phpize
LDFLAGS="${SLKLDFLAGS}" \
CFLAGS="${SLKCFLAGS}" \
./configure \
--with-libdir=/usr/lib64 \
--enable-phalcon \
--host=${ARCH}-slackware-linux \
--build=${ARCH}-slackware-linux
make
make INSTALL_ROOT=${PKG} install
strip --strip-unneeded ${PKG}/usr/lib64/php/extensions/phalcon.so

mkdir -p ${PKG}/etc/php/
echo 'extension=phalcon.so' > ${PKG}/etc/php/phalcon.ini
cd $PKG
/sbin/makepkg -l y -c n ${CWD}/${PKGNAME}-${VERSION}-${ARCH}-${BUILD}.txz

willysr 11-29-2013 10:17 AM

Why don't you submit to SBo when submission is open?
please check the template guidelines first before submitting :)

ponce 11-29-2013 11:28 AM

you can also see the one of another php extension, as an example for how the submitted one should be

http://slackbuilds.org/repository/14.../php-memcache/


All times are GMT -5. The time now is 03:22 AM.