Verified Commit aaa2bb6f authored by Ueli Banholzer's avatar Ueli Banholzer 🚀
Browse files

alpine 3.12 support

parent 19df5ce6
......@@ -16,12 +16,14 @@ Additionally, many PECL extensions are also available as packages as well.
<!-- ### PHP End of Support -->
<!-- - **PHP 7.4** | 2021-11-28 1638057600-->
<!-- PHP 7.3 | 2020-12-06 | 1607212800-->
<!-- Alpine 3.12 | 2022-05-01 | 1651449599-->
<!-- Alpine 3.11 | 2021-11-01 | 1635724800-->
<!-- Alpine 3.10 | 2021-05-01 | 1619827200-->
<!-- Alpine 3.9 | 2020-11-01 | 1604188800-->
| Alpine | PHP | End of Support | Repository URL |
| - | - | - | - |
| ![Alpine 3.12](https://img.shields.io/badge/Alpine-v3.12-blue?style=flat-square) | ![PHP 7.4](https://img.shields.io/badge/PHP-7.4-blueviolet?style=flat-square) ![](https://img.shields.io/badge/dynamic/json?label=PHP&query=$.latest_version&style=flat-square&color=blueviolet&url=https://api.bintray.com/packages/php-alpine/v3.12/php-7.4) | ![EOS](https://img.shields.io/badge/EOS-2022--05--01-success?style=flat-square) | [`https://dl.bintray.com/php-alpine/v3.12/php-7.4`](https://dl.bintray.com/php-alpine/v3.11/php-7.4) |
| ![Alpine 3.11](https://img.shields.io/badge/Alpine-v3.11-blue?style=flat-square) | ![PHP 7.4](https://img.shields.io/badge/PHP-7.4-blueviolet?style=flat-square) ![](https://img.shields.io/badge/dynamic/json?label=PHP&query=$.latest_version&style=flat-square&color=blueviolet&url=https://api.bintray.com/packages/php-alpine/v3.11/php-7.4) | ![EOS](https://img.shields.io/badge/EOS-2021--11--01-success?style=flat-square) | [`https://dl.bintray.com/php-alpine/v3.11/php-7.4`](https://dl.bintray.com/php-alpine/v3.11/php-7.4) |
| ![Alpine 3.11](https://img.shields.io/badge/Alpine-v3.11-blue?style=flat-square) | ![PHP 7.3](https://img.shields.io/badge/PHP-7.3-blueviolet?style=flat-square) ![](https://img.shields.io/badge/dynamic/json?label=PHP&query=$.latest_version&style=flat-square&color=blueviolet&url=https://api.bintray.com/packages/php-alpine/v3.11/php-7.3) | ![EOS](https://img.shields.io/badge/EOS-2021--05--01-success?style=flat-square) | [`https://dl.bintray.com/php-alpine/v3.11/php-7.3`](https://dl.bintray.com/php-alpine/v3.11/php-7.3) |
| ![Alpine 3.10](https://img.shields.io/badge/Alpine-v3.10-blue?style=flat-square) | ![PHP 7.4](https://img.shields.io/badge/PHP-7.4-blueviolet?style=flat-square) ![](https://img.shields.io/badge/dynamic/json?label=PHP&query=$.latest_version&style=flat-square&color=blueviolet&url=https://api.bintray.com/packages/php-alpine/v3.10/php-7.4) | ![EOS](https://img.shields.io/badge/EOS-2021--11--01-success?style=flat-square) | [`https://dl.bintray.com/php-alpine/v3.10/php-7.4`](https://dl.bintray.com/php-alpine/v3.10/php-7.4) |
......@@ -162,6 +164,9 @@ This is the complete available packages list:
| - | |
| `argon2` | Extra Package |
| `argon2-dev` | Extra Package |
| `enchant` | Extra Package |
| `enchant-doc` | Extra Package |
| `enchant-dev` | Extra Package |
| `libargon2` | Extra Package |
| `secp256k1` | Extra Package |
......
......@@ -3,6 +3,7 @@ version: "3"
volumes:
php-alpine-cache-edge:
php-alpine-cache-v3.12:
php-alpine-cache-v3.11:
php-alpine-cache-v3.10:
php-alpine-cache-v3.9:
......
# This package is being back-ported to support PHp 7.4 Argon2 password_hash() algo.
# Original file: https://github.com/alpinelinux/aports/blob/master/testing/argon2/APKBUILD
# Any license indication here contained takes lesser precedence than the original
# licenses on the official sources. It's just a backport.
# Contributor: Corey Oliver <coreyjonoliver@gmail.com>
# Maintainer: Corey Oliver <coreyjonoliver@gmail.com>
pkgname=argon2
srcdir="/tmp/src-$pkgname"
pkgbasedir="/tmp/pkg-$pkgname"
_pkgname=phc-winner-argon2
pkgver=20161029
provides="php-argon2=7.4"
_soname=0.0.0
pkgrel=1
pkgdesc="The password hash Argon2, winner of PHC"
url="https://github.com/P-H-C/phc-winner-argon2"
arch="all !armhf"
license="Apache-2.0 CC0-1.0"
subpackages="$pkgname-dev libargon2"
source="$pkgname-$pkgver.tar.gz::https://github.com/P-H-C/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
build() {
cd "$builddir"
make && make test
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
# A version number is not appended to the shared library file by default, so we do it ourselves
mv "$pkgdir"/usr/lib/libargon2.so "$pkgdir"/usr/lib/libargon2.so.$_soname || return 1
ln -s libargon2.so.$_soname "$pkgdir"/usr/lib/libargon2.so || return 1
ln -s libargon2.so.$_soname "$pkgdir"/usr/lib/libargon2.so.${_soname%%.*} || return 1
}
libargon2() {
pkgdesc="The password hash Argon2 library, winner of PHC"
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/lib "$subpkgdir"/usr
}
sha512sums="e1f947a97e8b5f292dd32a6f1ea0ef3f2e411629218653821886ec4e1d5f8289d5b8f4b8bf0a37e69c344a83b975c695947d6b49fd2001a0e4273bebd4792892 argon2-20161029.tar.gz"
#!/usr/bin/env bash
# error handling mode.
set -e
# dependencies to build.
PACKAGES="argon2 enchant secp256k1"
# extensions to build.
EXTENSIONS="amqp apcu ast ds imagick libsodium memcached mongodb msgpack psr redis scalar_objects secp256k1 swoole timecop xdebug"
# define root packages source path.
SOURCES_PATH=$(pwd)
# ensure starts on sources path.
cd ${SOURCES_PATH}
# function for building packages.
function build_package()
{
# alias package name from function input.
PACKAGE_NAME=${1}
# ensure previously built packages are available.
sudo apk update
# enter package source directory.
cd "$SOURCES_PATH/$PACKAGE_NAME"
# give a little feedback about the current package being built.
echo "----> Building Package: $PACKAGE_NAME"
# checksum source files before build.
abuild checksum
# build the package from source.
abuild -r
# return shell to previous location for safe scripting!
cd ${SOURCES_PATH}
}
# build base packages.
for PACKAGE in ${PACKAGES}; do
# call the build function.
build_package ${PACKAGE}
done
# when full flag is provided, build PHP itself first.
if [[ "$1" == "--full" ]] || [[ "$2" == "--full" ]]; then
# call the build function.
build_package "php7"
fi
# build extensions.
for EXTENSION in ${EXTENSIONS}; do
# call the build function, prefixing with "php7-".
build_package "php7-"${EXTENSION}
done
# ensure the final destination is the sources path.
cd ${SOURCES_PATH}
\ No newline at end of file
# This package is being back-ported to support PHP 7.4 Enchant spelling library.
# Original file: https://git.alpinelinux.org/aports/tree/main/enchant/APKBUILD?h=3.11-stable
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=enchant
pkgver=1.6.0
pkgrel=14
pkgdesc="A wrapper library for generic spell checking"
url="http://www.abisource.com/enchant/"
arch="all"
license="LGPL-2.0-or-later"
subpackages="$pkgname-dev $pkgname-doc"
makedepends="aspell-dev glib-dev dbus-glib-dev hunspell-dev gettext-dev file
bash"
source="http://www.abisource.com/downloads/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz
hunspell-build-fix.patch"
prepare() {
cd "$builddir"
update_config_sub
default_prepare
}
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--disable-static
make
}
check() {
cd "$builddir"/tests
./test-enchant
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
sha512sums="0ca1634bb783df51512df4abecc89abdadee6baf7330d6e5f90cc15d10779896a3521a1c079ecc07e4df4f7a018ce398cca9d0125a7845a314a059840ebc9137 enchant-1.6.0.tar.gz
c0b7fd8fd00a81ea2c08ea7ce2bdffa826b5a3a0c06eacb818681f0f977d8e76c69f7938c10cdf71571cd1cbbf0e576d36fc74a41755fb570e047525195aeb99 hunspell-build-fix.patch"
diff -ru enchant-1.6.0-orig/src/myspell/myspell_checker.cpp enchant-1.6.0/src/myspell/myspell_checker.cpp
--- enchant-1.6.0-orig/src/myspell/myspell_checker.cpp 2016-04-18 12:25:00.094614256 +0100
+++ enchant-1.6.0/src/myspell/myspell_checker.cpp 2016-04-18 12:26:09.108569576 +0100
@@ -148,6 +148,10 @@
g_iconv_close(m_translate_out);
}
+#ifndef MAXWORDLEN
+# define MAXWORDLEN 100
+#endif
+
bool
MySpellChecker::checkWord(const char *utf8Word, size_t len)
{
# Maintainer: "Diego Hernandes <iamhernandev@gmail.com>"
pkgname=php7-amqp
srcdir="/tmp/src-$pkgname"
pkgbasedir="/tmp/pkg-$pkgname"
_pkgreal=amqp
pkgver=1.10.2
pkgrel=1
_phpver=7
provides="php-amqp=7.4"
pkgdesc="AMQP - Communicate with any AMQP compliant server"
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
license="PHP-3"
depends="php7-common>=7.4.0 php7-common<7.5.0"
makedepends="php7-dev>=7.4.0 php7-dev<7.5.0 autoconf pcre-dev rabbitmq-c rabbitmq-c-dev"
source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare || return 1
}
build() {
cd "$builddir"
phpize7 || return 1
./configure --prefix=/usr \
--with-php-config=/usr/bin/php-config7 || return 1
# TEST_PHP_ARGS="-q" make test
make
}
package() {
mkdir -p "$pkgdir" || return 1
install -d $pkgdir/ || return 1
make -C "$builddir" INSTALL_ROOT="$pkgdir" install || return 1
install -d "$pkgdir"/etc/php$_phpver/conf.d || return 1
echo "extension=$_pkgreal" > "$pkgdir"/etc/php$_phpver/conf.d/00_$_pkgreal.ini || return 1
}
sha512sums="a17176bcc02d35a9686d3ca120cca98d808b2a896733f41a28b5d29d43127a0a45b012bc6566de3604f41b8bcc453408a37a8254bcf47e940ebe12bb6f4d4265 amqp-1.10.2.tgz"
# Maintainer: "Diego Hernandes <iamhernandev@gmail.com>"
pkgname=php7-apcu
srcdir="/tmp/src-$pkgname"
pkgbasedir="/tmp/pkg-$pkgname"
_pkgreal=apcu
pkgver=5.1.18
pkgrel=1
_phpver=7
provides="php-apcu=7.4"
pkgdesc="APCu - APC User Cache extension for PHP"
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
license="PHP-3"
depends="php7-common>=7.4.0 php7-common<7.5.0"
makedepends="php7-dev>=7.4.0 php7-dev<7.5.0 autoconf pcre2-dev"
source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare || return 1
}
build() {
cd "$builddir"
phpize$_phpver || return 1
./configure --prefix=/usr \
--with-php-config=/usr/bin/php-config$_phpver || return 1
make || return 1
}
package() {
mkdir -p "$pkgdir" || return 1
install -d $pkgdir/ || return 1
make -C "$builddir" INSTALL_ROOT="$pkgdir" install || return 1
install -d "$pkgdir"/etc/php$_phpver/conf.d || return 1
echo "extension=$_pkgreal" > "$pkgdir"/etc/php$_phpver/conf.d/00_$_pkgreal.ini || return 1
}
sha512sums="5e9c5b4540be7abdf2f473d2f8955d8708934a1d6e05cb2c99154cc7ba8a2bbf9afde51769e20f46ef278efd6f60b9172e0864c31e0976b9d3096a337035e7a9 apcu-5.1.18.tgz"
# Maintainer: "Diego Hernandes <iamhernandev@gmail.com>"
pkgname=php7-ast
srcdir="/tmp/src-$pkgname"
pkgbasedir="/tmp/pkg-$pkgname"
_pkgreal=ast
pkgver=1.0.6
pkgrel=1
_phpver=7
provides="php-ast=7.4"
pkgdesc="ast - Extension exposing PHP 7 abstract syntax tree"
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
license="PHP-3"
depends="php7-common>=7.4.0 php7-common<7.5.0"
makedepends="php7-dev>=7.4.0 php7-dev<7.5.0 autoconf pcre-dev"
source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare || return 1
}
build() {
cd "$builddir"
phpize$_phpver || return 1
./configure --prefix=/usr \
--with-php-config=/usr/bin/php-config$_phpver || return 1
make || return 1
}
package() {
mkdir -p "$pkgdir" || return 1
install -d $pkgdir/ || return 1
make -C "$builddir" INSTALL_ROOT="$pkgdir" install || return 1
install -d "$pkgdir"/etc/php$_phpver/conf.d || return 1
echo "extension=$_pkgreal" > "$pkgdir"/etc/php$_phpver/conf.d/00_$_pkgreal.ini || return 1
}
sha512sums="42ee07ee082ea3c6dcfd86ba25aa3d5bf188f277684acd63f5013b3da6b9ea5eafa2ac55a630ffe43aaf2d7366f055a372e61912a426e1413710658b1d9e4013 ast-1.0.6.tgz"
# Maintainer: "Diego Hernandes <iamhernandev@gmail.com>"
pkgname=php7-ds
srcdir="/tmp/src-$pkgname"
pkgbasedir="/tmp/pkg-$pkgname"
_pkgreal=ds
pkgver=1.2.9
pkgrel=1
_phpver=7
provides="php-ds=7.4"
pkgdesc="Data Structures"
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
license="PHP-3"
depends="php7-common>=7.4.0 php7-common<7.5.0"
makedepends="php7-dev>=7.4.0 php7-dev<7.5.0 autoconf pcre2-dev"
source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare || return 1
}
build() {
cd "$builddir"
phpize$_phpver || return 1
./configure --prefix=/usr \
--with-php-config=/usr/bin/php-config$_phpver || return 1
make || return 1
}
package() {
mkdir -p "$pkgdir" || return 1
install -d $pkgdir/ || return 1
make -C "$builddir" INSTALL_ROOT="$pkgdir" install || return 1
install -d "$pkgdir"/etc/php$_phpver/conf.d || return 1
echo "extension=$_pkgreal" > "$pkgdir"/etc/php$_phpver/conf.d/00_$_pkgreal.ini || return 1
}
sha512sums="73107fedd4515e5f7fbb761d19a9f9b472ad42771c1cc817ca4fc24fff1f070ce39cd59745d3a05a170d7327eea030cc85e7fb7a7caa3f3ff9b1eba19a159b86 ds-1.2.9.tgz"
# Maintainer: "Diego Hernandes <iamhernandev@gmail.com>"
pkgname=php7-imagick
srcdir="/tmp/src-$pkgname"
pkgbasedir="/tmp/pkg-$pkgname"
_pkgreal=imagick
pkgver=3.4.4
pkgrel=1
_phpver=7
provides="php-imagick=7.4"
pkgdesc="ImageMagick extension for PHP"
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
license="PHP-3"
depends="php7-common>=7.4.0 php7-common<7.5.0 imagemagick"
makedepends="php7-dev>=7.4.0 php7-dev<7.5.0 autoconf imagemagick-dev libtool pcre2-dev"
source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare || return 1
}
build() {
cd "$builddir"
phpize$_phpver || return 1
./configure --prefix=/usr \
--with-php-config=/usr/bin/php-config$_phpver || return 1
make || return 1
}
package() {
mkdir -p "$pkgdir" || return 1
install -d $pkgdir/ || return 1
make -C "$builddir" INSTALL_ROOT="$pkgdir" install || return 1
install -d "$pkgdir"/etc/php$_phpver/conf.d || return 1
echo "extension=$_pkgreal" > "$pkgdir"/etc/php$_phpver/conf.d/00_$_pkgreal.ini || return 1
}
sha512sums="73145a1f095849c32760db2dfc4acc13c57d99a037d65eca9b0ddf8f8e81cf6d28a50f2614e44bae1d90b4f881a2e9a64926e0e3b9403e491fd903ffeb30c4b7 imagick-3.4.4.tgz"
# Maintainer: "Diego Hernandes <iamhernandev@gmail.com>"
pkgname=php7-libsodium
srcdir="/tmp/src-$pkgname"
pkgbasedir="/tmp/pkg-$pkgname"
_pkgreal=libsodium
pkgver=2.0.22
pkgrel=1
_phpver=7
provides="php-libsodium=7.4"
pkgdesc="xDebug Profiler"
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
license="BSD-2"
depends="php7-common>=7.4.0 php7-common<7.5.0 libsodium"
makedepends="php7-dev>=7.4.0 php7-dev<7.5.0 autoconf libsodium-dev"
source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare || return 1
}
build() {
cd "$builddir"
phpize$_phpver || return 1
./configure --prefix=/usr \
--with-php-config=/usr/bin/php-config$_phpver || return 1
make || return 1
}
package() {
mkdir -p "$pkgdir" || return 1
install -d $pkgdir/ || return 1
make -C "$builddir" INSTALL_ROOT="$pkgdir" install || return 1
install -d "$pkgdir"/etc/php$_phpver/conf.d || return 1
echo "extension=$_pkgreal" > "$pkgdir"/etc/php$_phpver/conf.d/00_$_pkgreal.ini || return 1
}
sha512sums="3c2a7a4ee90d53f2a3c02dad7455a28c63cdac50353b33ee1f62f371661e4bbbc8d97636df63a07d6dc20fc0c8e0106531568c21f37617e8dbc0a526d039c26c libsodium-2.0.22.tgz"
# Maintainer: "Diego Hernandes <iamhernandev@gmail.com>"
pkgname=php7-memcached
srcdir="/tmp/src-$pkgname"
pkgbasedir="/tmp/pkg-$pkgname"
_pkgreal=memcached
pkgver=3.1.5
pkgrel=1
_phpver=7
provides="php-memcached=7.4"
pkgdesc="Memcached extension for PHP"
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
license="PHP-3"
depends="php7-common>=7.4.0 php7-common<7.5.0 php7-session>=7.4.0 php7-session<7.5.0"
makedepends="php7-dev>=7.4.0 php7-dev<7.5.0 autoconf zlib-dev libmemcached-dev cyrus-sasl-dev pcre-dev"
source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare || return 1
}
build() {
cd "$builddir"
phpize$_phpver || return 1
./configure --prefix=/usr \
--with-php-config=/usr/bin/php-config$_phpver || return 1
make || return 1
}
package() {
mkdir -p "$pkgdir" || return 1
install -d $pkgdir/ || return 1
make -C "$builddir" INSTALL_ROOT="$pkgdir" install || return 1
install -d "$pkgdir"/etc/php$_phpver/conf.d || return 1
echo "extension=$_pkgreal" > "$pkgdir"/etc/php$_phpver/conf.d/20_$_pkgreal.ini || return 1
}
sha512sums="87d5fd079fcaad81139785d6766da71b23a1a0fe907d4b22f3a787af148a20412c11df11c4d98c165241658baf0d87c8a6b29de15db07a0f9d1fabc8aec8f0e9 memcached-3.1.5.tgz"
# Maintainer: "Diego Hernandes <iamhernandev@gmail.com>"
pkgname=php7-mongodb
srcdir="/tmp/src-$pkgname"
pkgbasedir="/tmp/pkg-$pkgname"
_pkgreal=mongodb
pkgver=1.7.5
pkgrel=1
_phpver=7
provides="php-mongodb=7.4"
pkgdesc="MongoDB extension for PHP"
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
license="Apache"
depends="php7-common>=7.4.0 php7-common<7.5.0 php7-json>=7.4.0 php7-json<7.5.0"
makedepends="php7-dev>=7.4.0 php7-dev<7.5.0 autoconf openssl-dev pcre2-dev"
source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare || return 1
}
build() {
cd "$builddir"
phpize$_phpver || return 1
./configure --prefix=/usr \
--with-php-config=/usr/bin/php-config$_phpver || return 1
make || return 1
}
package() {
mkdir -p "$pkgdir" || return 1
install -d $pkgdir/ || return 1
make -C "$builddir" INSTALL_ROOT="$pkgdir" install || return 1
install -d "$pkgdir"/etc/php$_phpver/conf.d || return 1
echo "extension=$_pkgreal" > "$pkgdir"/etc/php$_phpver/conf.d/00_$_pkgreal.ini || return 1
}
sha512sums="f0565adc42659d4070e42122d02a8306f29d6d70fe0b5e9a92144df346a8c672aafdf36613435b9dc8d50db5e98c2359fdf97408c45439d4d447257b85e93122 mongodb-1.7.5.tgz"
# Maintainer: "Diego Hernandes <iamhernandev@gmail.com>"
pkgname=php7-msgpack
srcdir="/tmp/src-$pkgname"
pkgbasedir="/tmp/pkg-$pkgname"
_pkgreal=msgpack
pkgver=2.1.0
pkgrel=1
_phpver=7
provides="php-msgpack=7.4"
pkgdesc="PHP extension for interfacing with MessagePack"
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
license="PHP-3"
depends="php7-common>=7.4.0 php7-common<7.5.0 php7-session>=7.4.0 php7-session<7.5.0"
makedepends="php7-dev>=7.4.0 php7-dev<7.5.0 php7-session>=7.4.0 php7-session<7.5.0 autoconf pcre2-dev"
source="http://pecl.php.net/get/$_pkgreal-$pkgver.tgz"
builddir="$srcdir/$_pkgreal-$pkgver"
prepare() {
default_prepare || return 1
}
build() {
cd "$builddir"
phpize$_phpver || return 1
./configure --prefix=/usr \
--with-php-config=/usr/bin/php-config$_phpver || return 1
make
}
package() {
mkdir -p "$pkgdir" || return 1
install -d $pkgdir/ || return 1
make -C "$builddir" INSTALL_ROOT="$pkgdir" install || return 1
install -d "$pkgdir"/etc/php$_phpver/conf.d || return 1
echo "extension=$_pkgreal" > "$pkgdir"/etc/php$_phpver/conf.d/30_$_pkgreal.ini || return 1
}
sha512sums="e024694076224796b2fb4dbd4473c5ac782951911437d0ee668231a1908f924a3a28dd616c0821929b425ee5ec06ef51f870f15b677171429049f4ae5f7befb7 msgpack-2.1.0.tgz"
# Maintainer: "Diego Hernandes <iamhernandev@gmail.com>"
pkgname=php7-phalcon
srcdir="/tmp/src-$pkgname"
pkgbasedir="/tmp/pkg-$pkgname"
_pkgreal=phalcon
pkgver=4.0.5
pkgrel=1
_phpver=7
provides="php-phalcon=7.4"
pkgdesc="Phalcon extension for PHP"
url="http://pecl.php.net/package/$_pkgreal"
arch="all"
license="MIT"
depends="php7-common>=7.4.0 php7-common<7.5.0 php7-pdo>=7.4.0 php7-pdo<7.5.0 re2c"
makedepends="php7-dev>=7.4.0 php7-dev<7.5.0 g++ pcre-dev file libtool autoconf autoconf pcre2-dev re2c make"
source="$_pkgreal-$pkgver.zip::https://github.com/phalcon/c$_pkgreal/archive/v$pkgver.zip"
builddir="$srcdir/c$_pkgreal-$pkgver/build/php7/64bits"
prepare() {
default_prepare || return 1
}
build() {
cd "$builddir"
# make clean
phpize7
./configure --prefix=/usr --with-php-config=/usr/bin/php-config7
make
}
package() {
mkdir -p "$pkgdir" || return 1
install -d $pkgdir/ || return 1
make -C "$builddir" INSTALL_ROOT="$pkgdir" install || return 1
install -d "$pkgdir"/etc/php$_phpver/conf.d || return 1
echo "extension=$_pkgreal" > "$pkgdir"/etc/php$_phpver/conf.d/20_$_pkgreal.ini || return 1