diff options
| -rw-r--r-- | PKGBUILD | 46 | 
1 files changed, 46 insertions, 0 deletions
| diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..0dee416 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: jc_gargma <jc_gargma@iserlohn-fortress.net> +# Maintainer (AUR): Trevor Bergeron <aur@sec.gd> + +# # I maintain this because: +# I use it and it is not in an official repo + +pkgname=nginx-mainline-mod-rtmp +pkgver=1.2.1 +pkgrel=15 + +_modname="nginx-rtmp-module" +_nginxver=1.17.9 + +pkgdesc="Module for mainline nginx that adds RTMP support" +arch=('i686' 'x86_64') +depends=('nginx-mainline=1.17.9') +url="https://github.com/arut/nginx-rtmp-module" +license=('BSD') + +source=( +    http://nginx.org/download/nginx-$_nginxver.tar.gz +    http://nginx.org/download/nginx-$_nginxver.tar.gz.asc +    ${pkgname}-${pkgver}.tar.gz::https://github.com/arut/$_modname/archive/v$pkgver.tar.gz +) +sha256sums=('SKIP' +            'SKIP' +            '87aa597400b0b5a05274ee2d23d8cb8224e12686227a0abe31d783b3a645ea37') +validpgpkeys=('B0F4253373F8F6F510D42178520A9993A1C052F8') + +build() { +    cd "$srcdir"/nginx-$_nginxver + +    # Cribbed from aur/nginx-mainline-mod-http-xslt-filter by Sergey Shatunov +    opts=$(nginx -V 2>&1 | grep 'configure arguments' | sed -r 's@^[^:]+: @@') +    IFS=$'\n' opts=( $(xargs -n1 <<< "$opts") ) +    ./configure "${opts[@]}" --add-dynamic-module=../$_modname-$pkgver + +    make modules +} + +package() { +    cd "$srcdir"/nginx-$_nginxver/objs +    for mod in *.so; do +        install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod +    done +} | 
