diff options
author | oli | 2021-03-13 19:59:32 +0000 |
---|---|---|
committer | oli | 2021-03-13 19:59:32 +0000 |
commit | b15d4b2e67429b95ab22318deea4459aa7a4f73d (patch) | |
tree | 85a0842809ae366613b6f3051bf26768388d2b51 | |
parent | e5dc345f8378364d1c6ded0c0e79054c8d1f8e21 (diff) | |
download | aur-b15d4b2e67429b95ab22318deea4459aa7a4f73d.tar.gz |
Build against nginx-mainline-mod-src
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 26 |
2 files changed, 16 insertions, 15 deletions
@@ -1,17 +1,16 @@ pkgbase = nginx-mainline-mod-auth-ldap-git pkgdesc = LDAP Authentication module for nginx pkgver = r158.83c059b - pkgrel = 4 + pkgrel = 7 url = https://github.com/kvspb/nginx-auth-ldap arch = i686 arch = x86_64 license = BSD + makedepends = nginx-mainline-src makedepends = git depends = nginx-mainline depends = libldap - source = https://nginx.org/download/nginx-1.19.6.tar.gz source = git+https://github.com/kvspb/nginx-auth-ldap.git - sha256sums = b11195a02b1d3285ddf2987e02c6b6d28df41bb1b1dd25f33542848ef4fc33b5 sha256sums = SKIP pkgname = nginx-mainline-mod-auth-ldap-git @@ -2,34 +2,36 @@ pkgname=nginx-mainline-mod-auth-ldap-git pkgver=r158.83c059b -pkgrel=5 +pkgrel=7 _modname=nginx-auth-ldap -_nginxver=1.19.6 pkgdesc='LDAP Authentication module for nginx' arch=('i686' 'x86_64') depends=('nginx-mainline' 'libldap') -makedepends=('git') +makedepends=('nginx-mainline-src' 'git') url="https://github.com/kvspb/nginx-auth-ldap" license=('BSD') -source=( - https://nginx.org/download/nginx-$_nginxver.tar.gz - git+https://github.com/kvspb/nginx-auth-ldap.git -) +source=(git+https://github.com/kvspb/nginx-auth-ldap.git) -sha256sums=('b11195a02b1d3285ddf2987e02c6b6d28df41bb1b1dd25f33542848ef4fc33b5' - 'SKIP') +sha256sums=('SKIP') pkgver() { cd "$srcdir"/$_modname printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } +prepare() { + mkdir -p build + cd build + ln -sf /usr/src/nginx/auto + ln -sf /usr/src/nginx/src +} + build() { - cd "$srcdir"/nginx-$_nginxver - ./configure --with-compat --with-http_ssl_module --add-dynamic-module=../$_modname + cd build + /usr/src/nginx/configure --with-compat --with-http_ssl_module --add-dynamic-module=../$_modname make modules } @@ -37,7 +39,7 @@ package() { install -Dm644 "$srcdir"/$_modname/LICENSE \ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE - cd "$srcdir"/nginx-$_nginxver/objs + cd build/objs for mod in *.so; do install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod done |