summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorAmish2018-10-12 17:33:30 +0530
committerAmish2018-10-12 18:03:11 +0530
commit6dd93d2e8eee616d6e299d96c27cac4ff350abcb (patch)
treecfcb9f787df48c5e4509f09e9b37f1796c822084 /PKGBUILD
parentedf3ac3cd54c6b516ad7bedea88838e6079f4e28 (diff)
downloadaur-6dd93d2e8eee616d6e299d96c27cac4ff350abcb.tar.gz
Simplify. Create pam.ini in PKGBUILD itself
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD8
1 files changed, 4 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index b7027bceb27..a316c068276 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,9 +11,8 @@ license=('PHP')
depends=('php>=7.2.0' 'pam' 'php-pear')
makedepends=('autoconf')
#install=php-pam.install
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/amishmm/${pkgname}/archive/v${pkgver}.tar.gz" pam.ini php)
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/amishmm/${pkgname}/archive/v${pkgver}.tar.gz" php)
md5sums=('0182234a17611e79f537c0b16927fe8e'
- '9582d5f0476e486f2c3084940f1abd86'
'5fb207f61ff94b0cc7a2dcc1e3c1c388')
build() {
@@ -26,6 +25,7 @@ build() {
package() {
cd "${pkgname}-${pkgver}"
make INSTALL_ROOT="${pkgdir}" install
- install -D -m644 "${srcdir}/pam.ini" "${pkgdir}/etc/php/conf.d/pam.ini"
- install -D -m644 "${srcdir}/php" ${pkgdir}/etc/pam.d/php
+ echo -e "extension=pam.so;\npam.servicename=\"php\";" | \
+ install -Dm644 /dev/stdin "${pkgdir}/etc/php/conf.d/pam.ini"
+ install -Dm644 "${srcdir}/php" ${pkgdir}/etc/pam.d/php
}