summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAmish2018-10-12 17:18:45 +0530
committerAmish2018-10-12 18:03:11 +0530
commitedf3ac3cd54c6b516ad7bedea88838e6079f4e28 (patch)
treeaf3ba0220d26435d616d48f51a4f58aa92f211f5 /PKGBUILD
parent43d9d58e46d2c3e5d7c45347993c6d7d807e5edf (diff)
downloadaur-edf3ac3cd54c6b516ad7bedea88838e6079f4e28.tar.gz
New upstream. Old upstream was not updated since 2009 and needs patches
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD28
1 files changed, 13 insertions, 15 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 9d3060682a5..b7027bceb27 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,33 +1,31 @@
-# Contributor: Matteo Mattei <info@matteomattei.com>
+# Maintainer: Matteo Mattei <info@matteomattei.com>
+# Maintainer: Amish <contact at via dot aur>
pkgname=php-pam
-_extname=pam
-pkgver=1.0.3
-pkgrel=5
+pkgver=2.1.0
+pkgrel=1
pkgdesc="This extension provides PAM (Pluggable Authentication Modules) integration in PHP."
arch=('i686' 'x86_64')
-url="http://pecl.php.net/package/PAM"
+url="https://github.com/amishmm/php-pam"
license=('PHP')
-depends=('php' 'pam' 'php-pear')
+depends=('php>=7.2.0' 'pam' 'php-pear')
makedepends=('autoconf')
#install=php-pam.install
-source=(http://pecl.php.net/get/pam-${pkgver}.tgz pam.ini php zend.patch)
-md5sums=('2dfd378a76021245050333cd4d49ed96' '9582d5f0476e486f2c3084940f1abd86' '5fb207f61ff94b0cc7a2dcc1e3c1c388'
-'806c2d6052159dd58e392dbe91711d05')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/amishmm/${pkgname}/archive/v${pkgver}.tar.gz" pam.ini php)
+md5sums=('0182234a17611e79f537c0b16927fe8e'
+ '9582d5f0476e486f2c3084940f1abd86'
+ '5fb207f61ff94b0cc7a2dcc1e3c1c388')
build() {
- patch -p0 < ../zend.patch
- cd "${_extname}-${pkgver}"
- export CFLAGS="$CFLAGS -O0"
- export CXXFLAGS="$CXXFLAGS -O0"
+ cd "${pkgname}-${pkgver}"
phpize
./configure --prefix=/usr
make
}
package() {
- cd "${_extname}-${pkgver}"
+ cd "${pkgname}-${pkgver}"
make INSTALL_ROOT="${pkgdir}" install
- install -D -m644 "${srcdir}/${_extname}.ini" "${pkgdir}/etc/php/conf.d/${_extname}.ini"
+ install -D -m644 "${srcdir}/pam.ini" "${pkgdir}/etc/php/conf.d/pam.ini"
install -D -m644 "${srcdir}/php" ${pkgdir}/etc/pam.d/php
}