blob: 381938cd5a513c472f4d9b9db17b287604323829 (
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
45
46
47
48
49
50
51
52
53
|
# Contributor: V.Krishn <vkrishn4@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=php-phalcon
pkgver=2.0.3
pkgrel=0
pkgdesc="Web framework delivered as a C-extension for PHP"
url="https://github.com/phalcon/cphalcon"
arch="all"
license="PHP"
depends="php php-pdo php-json"
makedepends="php-dev autoconf grep sed pcre-dev gawk re2c"
subpackages=""
source="saveas-https://github.com/phalcon/cphalcon/archive/phalcon-v$pkgver.tar.gz/$pkgname-$pkgver.tar.gz
phalcon.ini
10.cphalcon.patch
"
_builddir="$srcdir/cphalcon-phalcon-v$pkgver"
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch)
msg "Applying $i"
patch -p1 -i "$srcdir"/$i || return 1
;;
esac
done
}
build() {
cd "$_builddir/build"
source ./install || return 1
}
package() {
cd "$_builddir/build/$PHALCONARCH"
make INSTALL_ROOT=$pkgdir install || return 1
install -D -m644 "$srcdir"/phalcon.ini "$pkgdir"/etc/php/conf.d/phalcon.ini
}
md5sums="9f2f30c7551bb388a3dc6d9aaaf8ea24 php-phalcon-2.0.3.tar.gz
4ff799a0f333728c44b7e7cf38af8d98 phalcon.ini
12112063b1b10e2257a3763fa21e216f 10.cphalcon.patch"
sha256sums="76e2c28bb86adf8ac165c5d43dfd428aa4b0b93bb92301dd83f96e5263cd5914 php-phalcon-2.0.3.tar.gz
e8a4178c51f104e28c6d79737b8e240cb35c3b96501ed5a866b9da3ff298d39c phalcon.ini
919eea78cee4d7f879d3dedd819453a0dd3304f6b0eea6e08ccee240fbb795c8 10.cphalcon.patch"
sha512sums="4c1935808a3c83e2be13ff06b0bb04207f0c10f98dbd76878572f9ae1e79ce72c6d47aef28d496c5b1f27363eeac7ac9e38047a73c92e1e41f841a2d2639570d php-phalcon-2.0.3.tar.gz
559daf31ccc73184ebd27f17088ee8b336015c391baa21c707cf2cca999f9737bf80d224467af74b5049019ae7f222235fcfec07391fede2e25becfad4fcf5a1 phalcon.ini
4877319bb79ddd8e52cdbd984a0d00199241406d73228c229a2430148653f6d5ef36c036d60ea7e661f2a46ed3e0bc747cf0bccbbbef24cc798700cfc39d5b3c 10.cphalcon.patch"
|