1
0
Fork 0

set proper version for deb

This commit is contained in:
Vincent Kersten 2015-05-11 09:40:09 +02:00
parent db089965b3
commit 57375aee9c
2 changed files with 5 additions and 6 deletions

View file

@ -31,16 +31,15 @@ fi
PHP_VER=$(${PHP_CONFIG} --version )
PHP_API=$(${PHP_CONFIG} --phpapi )
# There is prolly a better way to do this (getting the proper source pkg name):
PHP_DEB_VER="$(dpkg-query -W -f='${Version}' php5)"
PHP_SRC=php5-${PHP_DEB_VER%*-*}
if [ "x${PHP_VER}" = "x" ]; then
echo "Error: unknown php version"
exit 1
fi
# There is prolly a better way to do this (getting the proper source pkg name):
PHP_SRC1="$(dpkg-query -W -f='${Version}' php5)"
PHP_SRC=php5-${PHP_SRC1%*-*}
if [ ! -f "${PHP_SRC}" ]; then
apt-get source php5
if [ $? -ne 0 ]; then
@ -258,7 +257,7 @@ fi
LIBICU="$(dpkg-query -W -f='${Package}\n' libicu* | grep -v '\-')"
LIBICU_VER="$(dpkg-query -W -f='${Version}' $LIBICU)"
sed -i "s/_PHP_VER/$PHP_VER/g;s/_PHP_API/$PHP_API/g;s/_LIBICU_VER/$LIBICU_VER/g;s/_LIBICU/$LIBICU/g" package/DEBIAN/control
sed -i "s/_PHP_DEB_VER/$PHP_DEB_VER/g;s/_PHP_VER/$PHP_VER;s/_PHP_API/$PHP_API/g;s/_LIBICU_VER/$LIBICU_VER/g;s/_LIBICU/$LIBICU/g" package/DEBIAN/control
mkdir -p package/usr/bin
if [ $? -ne 0 ]; then

View file

@ -3,7 +3,7 @@ Version: _PHP_VER
Architecture: amd64
Maintainer: Anton Batenev <antonbatenev@yandex.ru>
Installed-Size: 350
Depends: libc6 (>= 2.13-38), libssl1.0.0 (>= 1.0.1e-2), _LIBICU (>= _LIBICU_VER), phpapi-_PHP_API, php5-common (= _PHP_VER)
Depends: libc6 (>= 2.13-38), libssl1.0.0 (>= 1.0.1e-2), _LIBICU (>= _LIBICU_VER), phpapi-_PHP_API, php5-common (= _PHP_DEB_VER)
Section: php
Priority: optional
Homepage: https://github.com/abbat/pdo_sqlcipher