diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-28 13:54:43 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-28 18:38:20 +0200 |
commit | 4272e802a1be191657becb739e6a248c1d0411a7 (patch) | |
tree | a07a25b7c99d7da326957a88173ba49583cf6b2a /community/php5-phalcon | |
parent | 3e272105092cd9804a5a022a188db929ebf440da (diff) | |
download | aports-4272e802a1be191657becb739e6a248c1d0411a7.tar.bz2 aports-4272e802a1be191657becb739e6a248c1d0411a7.tar.xz |
community/*: move php5 and dependent pkgs from main
There two main reasons for this change:
* Active support of PHP 5.x ended on January 2017, security support will
end on December 2018. Packages in the main repository should be
supported for at least 2 years, this means until first quarter of 2019
for the upcoming v3.6.
* php7 and its extensions are currently in the community repository, so
we can't use single abuild for both php5-* and php7-* packages (as we
do for Python and Lua packages).
This change was suggested by @vakartel, approved by @ncopa, @kaniini, and
@jirutka.
Diffstat (limited to 'community/php5-phalcon')
-rw-r--r-- | community/php5-phalcon/APKBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/community/php5-phalcon/APKBUILD b/community/php5-phalcon/APKBUILD new file mode 100644 index 0000000000..4d5f843dec --- /dev/null +++ b/community/php5-phalcon/APKBUILD @@ -0,0 +1,42 @@ +# Contributor: Valery Kartel <valery.kartel@gmail.com> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +_php=php5 +pkgname=${_php}-phalcon +_pkgreal=phalcon +pkgver=2.0.13 +_pkgver=v$pkgver +pkgrel=0 +pkgdesc="PHP extension that provides web framework delivered as a C-extension" +url="https://github.com/$_pkgreal/c$_pkgreal" +arch="all" +license="PHP" +depends="${_php}-pdo ${_php}-json" +makedepends="${_php}-dev autoconf re2c pcre-dev" +source="https://github.com/$_pkgreal/c$_pkgreal/archive/$_pkgreal-$_pkgver.tar.gz" +builddir="$srcdir/c$_pkgreal-$_pkgreal-$_pkgver/build" + +prepare() { + cd "$builddir" + local bits=$(echo '#include <limits.h>' | ${CC:-gcc} -dM -E - | awk '$2 == "LONG_BIT" {print $3}') + ln -s ${bits}bits arch +} + +build() { + cd "$builddir"/arch + phpize || return 1 + ./configure --prefix=/usr || return 1 + make || return 1 +} + +package() { + cd "$builddir"/arch + make INSTALL_ROOT="$pkgdir"/ install || return 1 + install -d "$pkgdir"/etc/php/conf.d || return 1 + echo "extension=$_pkgreal.so" > "$pkgdir"/etc/php/conf.d/$_pkgreal.ini + [ -d "$pkgdir"/usr/include ] && rm -fr "$pkgdir"/usr/include + return 0 +} + +md5sums="4afa8dacd3badc0e770cde79636d1522 phalcon-v2.0.13.tar.gz" +sha256sums="0a1bd6afe902c6f2f68cf5e2f2785503f5ad95d1d2cf1b66c77154c483a08a35 phalcon-v2.0.13.tar.gz" +sha512sums="1e0ebe955e9522d780ada874cce87a7c12ac26dd7ade3847592d63f3b81cb64d7e2a3c9745ecdc50dfb5ea238f470ce2ae2408396c32ecdf915fe6d690c742ff phalcon-v2.0.13.tar.gz" |