Files
aur-packages/nginx-mainline-mod-vts/PKGBUILD
Giovanni Harting 474fe4c305 Add 'nginx-mainline-mod-vts/' from commit 'f848cfe1295b01f59244dd82adbe4aef09b2124c'
git-subtree-dir: nginx-mainline-mod-vts
git-subtree-mainline: 184d1c5765
git-subtree-split: f848cfe129
2024-02-18 18:23:18 +01:00

46 lines
1.2 KiB
Bash

# Maintainer: Ivan Shapovalov <intelfx@intelfx.name>
# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
pkgname=nginx-mainline-mod-vts
pkgver=0.2.2
pkgrel=1
_modname="nginx-module-${pkgname#nginx-mainline-mod-}"
pkgdesc='Nginx virtual host traffic status module (module for mainline nginx)'
arch=('i686' 'x86_64')
depends=() # the build process doesn't require or use installed nginx, so add the dependency in package() to break the cycle
makedepends=('nginx-mainline-src')
url="https://github.com/vozlt/nginx-module-vts"
license=('BSD')
source=(
$_modname-$pkgver.tar.gz::https://github.com/vozlt/nginx-module-vts/archive/v$pkgver.tar.gz
)
sha256sums=('9353035331cfc5eec6c129eb8b348dab77f525329d4d60680a76e0c13c085f41')
prepare() {
mkdir -p build
cd build
ln -sf /usr/src/nginx/auto
ln -sf /usr/src/nginx/src
}
build() {
cd build
/usr/src/nginx/configure --with-compat --add-dynamic-module=../$_modname-$pkgver
make modules
}
package() {
depends=("nginx-mainline")
install -Dm644 "$srcdir"/$_modname-$pkgver/LICENSE \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
cd build/objs
for mod in *.so; do
install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
done
}