diff options
author | wobbol | 2019-04-06 17:49:00 -0500 |
---|---|---|
committer | wobbol | 2019-04-06 17:49:00 -0500 |
commit | be4198fe6333e6cde04767bafb54e7b63ea992a1 (patch) | |
tree | 8b3dd912a929222d751ae084ee15b1372b5cecbc /PKGBUILD | |
parent | 4853c7482bc48f296993c34079356983e8cef041 (diff) | |
download | aur-nginx-mod-rtmp-git.tar.gz |
Add provides, revert prepare(), simplify package()
- Add provides
- Other AUR packages exist that provide this same module.
- No other nginx-mod-* package lists this so it is pretty much
useless.
- Revert prepare()
- Apparently, prepare() is for patches not ./configure
- Simplify package()
- No need for a loop we just have one file.
- Update package description.
- This package has far more than rtmp in it.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 28 |
1 files changed, 12 insertions, 16 deletions
@@ -9,10 +9,11 @@ pkgrel=1 _modname="nginx-rtmp-module" _nginxver="$(/bin/nginx -v 2>&1 | grep -Eo '([[:digit:]]|\.)+')" -pkgdesc="Module for nginx that adds RTMP support" +pkgdesc='Module for nginx that adds RTMP, HLS, and MPEG-DASH support.' arch=('i686' 'x86_64') -depends=('nginx') -url="https://github.com/sergey-dryabzhinsky/nginx-rtmp-module" +depends=('nginx' 'openssl') +provides=("$_modname") +url='https://github.com/sergey-dryabzhinsky/nginx-rtmp-module' license=('BSD') source=( @@ -25,7 +26,7 @@ sha256sums=( 'SKIP' 'SKIP' ) - +# Maxim Dounin <mdounin@mdounin.ru> validpgpkeys=('B0F4253373F8F6F510D42178520A9993A1C052F8') pkgver() { @@ -33,20 +34,15 @@ pkgver() { printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } -prepare() { - cd "nginx-$_nginxver" - ./configure --with-compat --add-dynamic-module="../$_modname" -} - build() { - cd "nginx-$_nginxver" - make modules + cd "nginx-$_nginxver" + ./configure --with-compat "--add-dynamic-module=../$_modname" + make modules } package() { - install -Dm644 "$_modname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" - cd "nginx-$_nginxver/objs" - for mod in *.so; do - install -Dm755 "$mod" "$pkgdir/usr/lib/nginx/modules/$mod" - done + cd "$_modname" + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + cd "../nginx-$_nginxver/objs" + install -Dm755 ngx_rtmp_module.so "$pkgdir/usr/lib/nginx/modules/ngx_rtmp_module.so" } |