summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoseph R. Quinn2019-10-28 15:11:09 -0400
committerJoseph R. Quinn2019-10-28 15:11:09 -0400
commit2a6b148b17830a4a149330f67fcb547ce88fd763 (patch)
treefc5542ce4dbf634b173186d4556039a456e8ac1a
downloadaur-2a6b148b17830a4a149330f67fcb547ce88fd763.tar.gz
Initial Commit
-rw-r--r--.SRCINFO26
-rw-r--r--.gitignore20
-rw-r--r--PKGBUILD55
-rw-r--r--phalcon.ini1
4 files changed, 102 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..fe088e1c069
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+pkgbase = php-phalcon-git
+ pkgdesc = High performance, full-stack PHP framework delivered as a C extension. Git package.
+ pkgver = 4.0.0.rc.2
+ pkgrel = 1
+ url = https://phalcon.io/
+ arch = i686
+ arch = x86_64
+ license = PHP
+ makedepends = git
+ makedepends = gcc
+ depends = php>=5.5
+ depends = php-psr
+ depends = re2c
+ depends = pcre
+ provides = php-phalcon
+ conflicts = php-phalcon
+ conflicts = php70-phalcon
+ conflicts = php-phalcon3
+ backup = etc/php/conf.d/phalcon.ini
+ source = cphalcon::git+https://github.com/phalcon/cphalcon.git
+ source = phalcon.ini
+ sha1sums = SKIP
+ sha1sums = ed25858fa5e997332d5bbed453f54ba3c8659b13
+
+pkgname = php-phalcon-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..ccdadf69359
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,20 @@
+
+# Created by https://www.gitignore.io/api/archlinuxpackages
+# Edit at https://www.gitignore.io/?templates=archlinuxpackages
+
+### ArchLinuxPackages ###
+*.tar
+*.tar.*
+*.jar
+*.exe
+*.msi
+*.zip
+*.tgz
+*.log
+*.log.*
+*.sig
+
+pkg/
+src/
+
+# End of https://www.gitignore.io/api/archlinuxpackages
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..4efbf037eff
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,55 @@
+# Maintainer: Joseph R Quinn <quinn period joseph r at protonmail dot com>
+pkgname=php-phalcon-git
+_pkgname=cphalcon
+pkgver=4.0.0.rc.2
+pkgrel=1
+pkgdesc="High performance, full-stack PHP framework delivered as a C extension. Git package."
+arch=('i686' 'x86_64')
+url="https://phalcon.io/"
+license=('PHP')
+depends=('php>=5.5' 'php-psr' 're2c' 'pcre')
+makedepends=('git' 'gcc')
+optionaldepends=('php-sqlite: Sqlite support'
+ 'php-pgsql: PgSQL backend model support'
+ 'php-mongodb: MongoDB ODM support'
+ 'php-redis: Redis caching support'
+ 'phalcon-devtools'
+ 'php-scrypt'
+ 'php-sodium'
+ 'php-twig'
+ 'php-yaml'
+ 'php-memcached'
+ 'php-gd'
+ 'curl'
+ 'php-imagick')
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}" 'php70-phalcon' 'php-phalcon3')
+backup=('etc/php/conf.d/phalcon.ini')
+source=("$_pkgname::git+https://github.com/phalcon/cphalcon.git"
+ 'phalcon.ini')
+sha1sums=('SKIP'
+ 'ed25858fa5e997332d5bbed453f54ba3c8659b13')
+
+_PHP_VERSION=`php-config --version`
+[ "${PHP_VERSION:0:1}" == "5" ] && _PHP_VERSION='php5' || _PHP_VERSION='php7'
+
+[ $CARCH == "x86_64" ] && _arch="64bits" || _arch="32bits"
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ printf "%s" "$(git describe --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g;s/v//g')"
+}
+
+build() {
+ export CPPFLAGS+="-DPHALCON_RELEASE"
+ cd "$srcdir/$_pkgname/build/$_PHP_VERSION/$_arch"
+ phpize
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$srcdir/$_pkgname/build/$_PHP_VERSION/$_arch"
+ make INSTALL_ROOT="$pkgdir" install
+ install -Dm644 "$srcdir/phalcon.ini" "$pkgdir/etc/php/conf.d/phalcon.ini"
+}
diff --git a/phalcon.ini b/phalcon.ini
new file mode 100644
index 00000000000..24b58bad4a6
--- /dev/null
+++ b/phalcon.ini
@@ -0,0 +1 @@
+extension=phalcon.so \ No newline at end of file