summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjc_gargma <jc_gargma@iserlohn-fortress.net>2022-10-06 21:29:39 -0700
committerjc_gargma <jc_gargma@iserlohn-fortress.net>2022-10-06 21:29:39 -0700
commitd25f1c1b45c4669aa63b3db561608de91e4b99b1 (patch)
treed30351a0c4a1f6e97181b4d261acdd2ddea638fb
parentRebuild for 1.21.6 (diff)
downloadnginx-mainline-mod-rtmp-d25f1c1b45c4669aa63b3db561608de91e4b99b1.tar.xz
Rebuild using nginx-mainline-src instead of raw source for compatibility reasons.
-rw-r--r--PKGBUILD27
1 files changed, 14 insertions, 13 deletions
diff --git a/PKGBUILD b/PKGBUILD
index dd010b6..a9b0f99 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@
pkgname=nginx-mainline-mod-rtmp
pkgver=1.2.2
-pkgrel=5
+pkgrel=6
_modname="nginx-rtmp-module"
_nginxver=1.21.6
@@ -15,32 +15,33 @@ _nginxver=1.21.6
pkgdesc="Module for mainline nginx that adds RTMP support"
arch=('aarch64' 'i686' 'x86_64')
depends=("nginx-mainline=${_nginxver}")
+makedepends=('nginx-mainline-src')
url="https://github.com/arut/nginx-rtmp-module"
license=('BSD')
-source=(
- https://nginx.org/download/nginx-$_nginxver.tar.gz
- https://nginx.org/download/nginx-$_nginxver.tar.gz.asc
- ${pkgname}-${pkgver}.tar.gz::https://github.com/arut/$_modname/archive/v$pkgver.tar.gz
-)
-b2sums=('815d035df33bd947eec41a2f5c993d1f179aa0bd4d069280916aa089a2f96fd3bada7a7192b4a0ef7b8f43036f3a2def0e93d8c8f720dd7145a5d55ea058652f'
- 'SKIP'
- '8745816b879f506720955d6c7e5e8af036e88b3601a680071ffb255a3ec31d69e132b5cc8b493202fa985eb30b8529428f683b5154a0054c0ee990d3185c7abf')
-validpgpkeys=('B0F4253373F8F6F510D42178520A9993A1C052F8')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/arut/$_modname/archive/v$pkgver.tar.gz)
+sha256sums=('07f19b7bffec5e357bb8820c63e5281debd45f5a2e6d46b1636d9202c3e09d78')
+b2sums=('8745816b879f506720955d6c7e5e8af036e88b3601a680071ffb255a3ec31d69e132b5cc8b493202fa985eb30b8529428f683b5154a0054c0ee990d3185c7abf')
+
+prepare() {
+ mkdir -p build
+ ln -sf /usr/src/nginx/auto build/
+ ln -sf /usr/src/nginx/src build/
+}
build() {
- cd "$srcdir"/nginx-$_nginxver
+ 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") )
- ./configure "${opts[@]}" --add-dynamic-module=../$_modname-$pkgver
+ /usr/src/nginx/configure "${opts[@]}" --add-dynamic-module=../$_modname-$pkgver
make modules
}
package() {
- cd "$srcdir"/nginx-$_nginxver/objs
+ cd "$srcdir/build/objs"
for mod in *.so; do
install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
done