ngx_http_enhance_mp4_module/PKGBUILD

44 lines
1.2 KiB
Bash
Raw Normal View History

2021-04-05 20:50:10 +02:00
# Maintainer: Your New SJW Waifu <sjw@i.gotabig.wang>
# Contributor: Your New SJW Waifu <sjw@i.gotabig.wang>
2021-04-05 21:29:29 +02:00
ngx_ver=1.18.0
2021-04-05 21:17:01 +02:00
pkgname=nginx-mod-enhance-mp4-git
2021-04-05 20:50:10 +02:00
pkgver=1.0
pkgrel=1
pkgdesc='Places moov atom at beginning of mp4 file on-the-fly to improve streaming performance'
arch=('i686' 'x86_64')
depends=('nginx')
2021-04-05 21:23:25 +02:00
makedepends=('git')
2021-04-05 20:50:10 +02:00
url="https://git.mentality.rip/sjw/ngx_http_enhance_mp4_module"
license=('custom')
2021-04-05 21:17:01 +02:00
source=(${pkgname}::git+https://git.mentality.rip/sjw/ngx_http_enhance_mp4_module.git
2021-04-05 21:29:29 +02:00
http://nginx.org/download/nginx-${ngx_ver}.tar.gz
2021-04-05 20:50:10 +02:00
)
2021-04-05 21:31:37 +02:00
sha512sums=(
'SKIP'
'8c21eeb62ab6e32e436932500f700bd2fb99fd2d29e43c08a5bfed4714c189c29c7141db551fcd5d2437303b7439f71758f7407dfd3e801e704e45e7daa78ddb'
)
2021-04-05 20:50:10 +02:00
prepare() {
cp -r /usr/src/nginx .
}
build() {
2021-04-05 21:29:29 +02:00
cd "${srcdir}/nginx-${_ngx_ver}"
./configure --with-compat --add-dynamic-module="${srcdir}/ngx_http_enhance_mp4_module"
2021-04-05 20:50:10 +02:00
make modules
}
package() {
install -Dm644 "$srcdir/"ngx_http_enhance_mp4_module/LICENSE \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE
cd "$srcdir"/nginx/objs
for mod in *.so; do
install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
done
}