aboutsummaryrefslogtreecommitdiffstats
path: root/main/php-phalcon
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-11-30 12:33:30 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-11-30 12:36:02 +0000
commit95dff1fe41c1fbd9f8b1a2e1ddfb6951c1c5f906 (patch)
treea6182ce43bf85283179b87644af6df925c823af5 /main/php-phalcon
parent359b7312d871189f668535f9a70d4a0d75f01891 (diff)
downloadaports-95dff1fe41c1fbd9f8b1a2e1ddfb6951c1c5f906.tar.bz2
aports-95dff1fe41c1fbd9f8b1a2e1ddfb6951c1c5f906.tar.xz
main/php-phalcon: enable arm
Diffstat (limited to 'main/php-phalcon')
-rw-r--r--main/php-phalcon/APKBUILD10
1 files changed, 4 insertions, 6 deletions
diff --git a/main/php-phalcon/APKBUILD b/main/php-phalcon/APKBUILD
index 41059830b8..0f1e718db1 100644
--- a/main/php-phalcon/APKBUILD
+++ b/main/php-phalcon/APKBUILD
@@ -7,7 +7,7 @@ _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="x86 x86_64"
+arch="all"
license="PHP"
depends="php-pdo php-json"
makedepends="php-dev autoconf re2c pcre-dev"
@@ -19,11 +19,8 @@ _builddir="$srcdir"/c$_pkgreal-$_pkgreal-$_pkgver/build
prepare() {
cd "$_builddir"
- case $(uname -m) in
- i[3-6]86) ln -s 32bits arch ;;
- x86_64) ln -s 64bits arch ;;
- *) return 1 ;;
- esac
+ local bits=$(echo '#include <limits.h>' | ${CC:-gcc} -dM -E - | awk '$2 == "LONG_BIT" {print $3}')
+ ln -s ${bits}bits arch
}
build() {
@@ -39,6 +36,7 @@ package() {
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="880cb23f79eb0d12db267a3d8dae9123 phalcon-v2.0.8.tar.gz"