blob: c0e3af6b84818cc64f2ceb91ec98d12c0d2a377e (
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=1.3.4
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/$pkgver.tar.gz/$pkgname-$pkgver.tar.gz
phalcon.ini
10.cphalcon.patch
"
_builddir="$srcdir/cphalcon-$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="431d446929338667c72eb4fa2383b0e9 php-phalcon-1.3.4.tar.gz
4ff799a0f333728c44b7e7cf38af8d98 phalcon.ini
12112063b1b10e2257a3763fa21e216f 10.cphalcon.patch"
sha256sums="ed23e7e04f127227aa8995e382b7cf5e398ac9db4660a8b66fd0a95db437a449 php-phalcon-1.3.4.tar.gz
e8a4178c51f104e28c6d79737b8e240cb35c3b96501ed5a866b9da3ff298d39c phalcon.ini
919eea78cee4d7f879d3dedd819453a0dd3304f6b0eea6e08ccee240fbb795c8 10.cphalcon.patch"
sha512sums="415539c7f779c837ae8ec3f07a777c02e54a4b7a44c8af4fd7f47165417a69be4a1a0fd0be08ec89b2257b5fb660050caeea688d873427813adb51f92897d59a php-phalcon-1.3.4.tar.gz
559daf31ccc73184ebd27f17088ee8b336015c391baa21c707cf2cca999f9737bf80d224467af74b5049019ae7f222235fcfec07391fede2e25becfad4fcf5a1 phalcon.ini
4877319bb79ddd8e52cdbd984a0d00199241406d73228c229a2430148653f6d5ef36c036d60ea7e661f2a46ed3e0bc747cf0bccbbbef24cc798700cfc39d5b3c 10.cphalcon.patch"
|