diff options
author | Can Celasun | 2015-05-31 21:46:22 +0300 |
---|---|---|
committer | Can Celasun | 2015-05-31 21:46:22 +0300 |
commit | 140b5ebfec0af9321c6faafd561f427b571b4562 (patch) | |
tree | c2a0f5bcbbbf95bcb3778b645dda7ceab33e5fb1 | |
download | aur-140b5ebfec0af9321c6faafd561f427b571b4562.tar.gz |
New structure
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 39 | ||||
-rw-r--r-- | phpredis.ini | 1 |
3 files changed, 58 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0d759b3aa634 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = phpredis-git + pkgdesc = A PHP extension for Redis + pkgver = 2.2.5.r11.gb9a16b5 + pkgrel = 1 + url = https://github.com/nicolasff/phpredis + arch = i686 + arch = x86_64 + license = PHP + makedepends = git + depends = php + backup = etc/php/conf.d/phpredis.ini + source = git+https://github.com/nicolasff/phpredis.git + source = phpredis.ini + md5sums = SKIP + md5sums = 1fc22a23c6b24a223dd235a15d5e194f + +pkgname = phpredis-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2da53a63acab --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Can Celasun <dcelasun[at]gmail[dot]com> + +pkgname=phpredis-git +pkgrel=1 +pkgver=2.2.5.r11.gb9a16b5 +pkgdesc="A PHP extension for Redis" +arch=('i686' 'x86_64') +url="https://github.com/nicolasff/phpredis" +license=('PHP') +makedepends=('git') +depends=('php') +_ininame="phpredis.ini" +_inifile="etc/php/conf.d/$_ininame" +backup=("$_inifile") +source=(git+https://github.com/nicolasff/phpredis.git ${_ininame}) + +md5sums=('SKIP' + '1fc22a23c6b24a223dd235a15d5e194f') + +pkgver() { + cd "${srcdir}/phpredis" + git describe --long | sed -r 's/([^-]*-g)/r\1/;s/-/./g' +} + +build() { + cd "${srcdir}/phpredis" + + phpize + ./configure --prefix=/usr --enable-redis + make + TEST_PHP_ARGS="-q" make test +} + +package() { + cd "${srcdir}/phpredis" + + make INSTALL_ROOT="${pkgdir}" install + install -vDm644 "${srcdir}/${_ininame}" "${pkgdir}/${_inifile}" +} diff --git a/phpredis.ini b/phpredis.ini new file mode 100644 index 000000000000..b07847fe3189 --- /dev/null +++ b/phpredis.ini @@ -0,0 +1 @@ +;extension=redis.so |