diff options
author | Дамјан Георгиевски | 2020-04-23 12:14:02 +0200 |
---|---|---|
committer | Дамјан Георгиевски | 2020-04-23 12:35:24 +0200 |
commit | f80e104de29f2cf6621b5f8d38683b91fdb9365f (patch) | |
tree | 028e9afc54eeebf7a6b9d6ea18cbad320bdafe66 | |
parent | f42b520698864eb4fc635a90e6e858348ea68f6c (diff) | |
download | aur-f80e104de29f2cf6621b5f8d38683b91fdb9365f.tar.gz |
packaging update (and bump for nginx 1.18.0)
makedepends on nginx-src now, so we don't need to download
nginx source each time when building.
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 25 insertions, 18 deletions
@@ -1,16 +1,15 @@ pkgbase = nginx-mod-nchan pkgdesc = nchan nginx module pkgver = 1.2.7 - pkgrel = 1 + pkgrel = 2 url = https://nchan.io/ arch = i686 arch = x86_64 license = MIT - depends = nginx=1.16.1 + makedepends = nginx-src + depends = nginx source = https://github.com/slact/nchan/archive/v1.2.7.tar.gz - source = http://nginx.org/download/nginx-1.16.1.tar.gz sha256sums = 8bb5d1749af759bb5e9cc5476a9c4b44d51bee6096bb89ab5ff53e85367b490b - sha256sums = f11c2a6dd1d3515736f0324857957db2de98be862461b5a542a3ac6188dbe32b pkgname = nginx-mod-nchan @@ -1,35 +1,43 @@ # Maintainer: Damjan Georgievski <gdamjan@gmail.com> -pkgname=nginx-mod-nchan +_mod_name=nchan +pkgname=nginx-mod-$_mod_name pkgver=1.2.7 -pkgrel=1 - -_nginxver=1.16.1 +pkgrel=2 pkgdesc='nchan nginx module' arch=('i686' 'x86_64') -depends=("nginx=${_nginxver}") +depends=("nginx") +makedepends=('nginx-src') url="https://nchan.io/" license=('MIT') source=( - https://github.com/slact/nchan/archive/v${pkgver}.tar.gz - http://nginx.org/download/nginx-$_nginxver.tar.gz + https://github.com/slact/$_mod_name/archive/v${pkgver}.tar.gz ) +prepare() { + cp -r /usr/src/nginx . +} + build() { - cd "$srcdir"/nginx-$_nginxver - _module_dir="$srcdir"/nchan-$pkgver - ./configure --with-compat --add-dynamic-module=${_module_dir} + _module_dir="$srcdir"/$_mod_name-$pkgver + + cd "$srcdir"/nginx + ./configure --with-compat --add-dynamic-module=$_module_dir make modules } package() { - cd "$srcdir"/nginx-$_nginxver/objs - for _mod in ngx_nchan_module.so; do + _module_dir="$srcdir"/$_mod_name-$pkgver + + install -Dm644 "${_module_dir}"/LICENCE \ + "$pkgdir"/usr/share/licenses/$pkgname/LICENCE + + cd "$srcdir"/nginx/objs + for _mod in ngx_*_module.so; do install -Dm755 $_mod "$pkgdir"/usr/lib/nginx/modules/$_mod done } -sha256sums=('8bb5d1749af759bb5e9cc5476a9c4b44d51bee6096bb89ab5ff53e85367b490b' - 'f11c2a6dd1d3515736f0324857957db2de98be862461b5a542a3ac6188dbe32b') +sha256sums=('8bb5d1749af759bb5e9cc5476a9c4b44d51bee6096bb89ab5ff53e85367b490b') |