set proper version for deb
This commit is contained in:
parent
ff2ff114e8
commit
312a59ab83
2 changed files with 5 additions and 6 deletions
|
|
@ -31,16 +31,15 @@ fi
|
||||||
|
|
||||||
PHP_VER=$(${PHP_CONFIG} --version )
|
PHP_VER=$(${PHP_CONFIG} --version )
|
||||||
PHP_API=$(${PHP_CONFIG} --phpapi )
|
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
|
if [ "x${PHP_VER}" = "x" ]; then
|
||||||
echo "Error: unknown php version"
|
echo "Error: unknown php version"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
if [ ! -f "${PHP_SRC}" ]; then
|
||||||
apt-get source php5
|
apt-get source php5
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
|
@ -258,7 +257,7 @@ fi
|
||||||
LIBICU="$(dpkg-query -W -f='${Package}\n' libicu* | grep -v '\-')"
|
LIBICU="$(dpkg-query -W -f='${Package}\n' libicu* | grep -v '\-')"
|
||||||
LIBICU_VER="$(dpkg-query -W -f='${Version}' $LIBICU)"
|
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
|
mkdir -p package/usr/bin
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ Version: _PHP_VER
|
||||||
Architecture: amd64
|
Architecture: amd64
|
||||||
Maintainer: Anton Batenev <antonbatenev@yandex.ru>
|
Maintainer: Anton Batenev <antonbatenev@yandex.ru>
|
||||||
Installed-Size: 350
|
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
|
Section: php
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Homepage: https://github.com/abbat/pdo_sqlcipher
|
Homepage: https://github.com/abbat/pdo_sqlcipher
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue