blob: 588e886693aeb23d498dedac73c66d462ffc4ba6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: Trevor Bergeron <aur@sec.gd>
pkgname=nginx-mainline-mod-rtmp
pkgver=1.2.2
pkgrel=4
_modname="nginx-rtmp-module"
_nginxver="$(/bin/nginx -v 2>&1 | grep -Eo '([[:digit:]]|\.)+')"
pkgdesc="Module for mainline nginx that adds RTMP support"
arch=('aarch64' 'i686' 'x86_64')
makedepends=('nginx-mainline-src')
depends=('nginx-mainline')
url="https://github.com/arut/nginx-rtmp-module"
license=('BSD')
source=(
$_modname-$pkgver.tar.gz::https://github.com/arut/$_modname/archive/v$pkgver.tar.gz
)
sha256sums=('07f19b7bffec5e357bb8820c63e5281debd45f5a2e6d46b1636d9202c3e09d78')
prepare() {
mkdir -p build
ln -sf /usr/src/nginx/auto build/
ln -sf /usr/src/nginx/src build/
}
build() {
cd build
# 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") )
/usr/src/nginx/configure "${opts[@]}" --add-dynamic-module=../$_modname-$pkgver
make modules
}
package() {
cd "$srcdir/build/objs"
for mod in *.so; do
install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
done
}
|