upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / nginx-mod-vts / trunk / PKGBUILD
blobcfe0d8e2769b81d780f57d99ff71740f146e0093
1 # Maintainer: Jelle van der Waa <jelle@archlinux.org>
2 # Contributor: Giovanni Harting <539@idlegandalf.com>
4 _modname="nginx-module-vts"
5 pkgname=nginx-mod-vts
6 pkgver=0.2.1
7 pkgrel=2
8 pkgdesc="Nginx virtual host traffic status module"
9 arch=('x86_64')
10 depends=('nginx')
11 makedepends=('nginx-src')
12 url="https://github.com/vozlt/nginx-module-vts"
13 license=('BSD')
14 source=(${pkgname}-${pkgver}.tar.gz::https://github.com/vozlt/$_modname/archive/v$pkgver.tar.gz)
15 sha256sums=('1a63d78d3ae4df18b3a57a616eeee006cdc0bd71aa7ea2947046004b123704f4')
17 build() {
18     cp -r /usr/src/nginx .
20     cd nginx
21     ./configure --with-compat --add-dynamic-module=../$_modname-$pkgver
22     make modules
25 package() {
26     install -Dm0644 "nginx-module-vts-$pkgver"/LICENSE "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE
28     cd nginx/objs
29     for mod in *.so; do
30         install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
31     done