blob: 0f1e718db112d5bc9a773a55b328fbd76ece58f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=php-phalcon
_pkgreal=phalcon
pkgver=2.0.8
_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="880cb23f79eb0d12db267a3d8dae9123 phalcon-v2.0.8.tar.gz"
sha256sums="ff61532ebb5dd99c43ce0ba508f0f37b87607f24fb7f595268dbe6331f3c906b phalcon-v2.0.8.tar.gz"
sha512sums="24394805fcc78119deadb998b2286bca6b35db070b425c518f8ad3da5b0625ffdcd8a6d9da0b5691c418cc4718336d318996fa681e3c3d98fd91ef2c3117222a phalcon-v2.0.8.tar.gz"
|