diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2016-05-05 12:09:40 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-05-05 15:43:07 +0000 |
commit | 9d93f9464bb75e720df0b4d53bdf1ca0ad5a45ac (patch) | |
tree | b74ae85ae95268af977033bb32b9d52560e104ae /main/php5-phalcon | |
parent | 3a8de3b132e52600e1ca75e6ae84e31ed4e45a8f (diff) | |
download | aports-9d93f9464bb75e720df0b4d53bdf1ca0ad5a45ac.tar.bz2 aports-9d93f9464bb75e720df0b4d53bdf1ca0ad5a45ac.tar.xz |
main/php5-phalcon: rename php to php5
Diffstat (limited to 'main/php5-phalcon')
-rw-r--r-- | main/php5-phalcon/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/main/php5-phalcon/APKBUILD b/main/php5-phalcon/APKBUILD new file mode 100644 index 0000000000..fa16dd03df --- /dev/null +++ b/main/php5-phalcon/APKBUILD @@ -0,0 +1,45 @@ +# Contributor: Valery Kartel <valery.kartel@gmail.com> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +_php=php5 +pkgname=${_php}-phalcon +_pkgreal=phalcon +pkgver=2.0.10 +_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" +install="" +subpackages="" +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="34f4eba6be3be7e3afc820553cff060a phalcon-v2.0.10.tar.gz" +sha256sums="59fbe5bdee7a955ecb1f0cd8bb4c942e33105080302f239363aa3941e9e52172 phalcon-v2.0.10.tar.gz" +sha512sums="fe3b2438f0dcaa6112a86057afeb708231ea8c2e9bc8ca7b04534bfe742d935a42227c527612d6ff3345bc947c5bb333dae343df1a1cb69ceafc702f42fcbef3 phalcon-v2.0.10.tar.gz" |