39 lines
930 B
Bash
39 lines
930 B
Bash
|
# Maintainer: Your New SJW Waifu <sjw@i.gotabig.wang>
|
||
|
# Contributor: Your New SJW Waifu <sjw@i.gotabig.wang>
|
||
|
|
||
|
pkgname=nginx-mod-enhance-mp4
|
||
|
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')
|
||
|
makedepends=('nginx-src')
|
||
|
url="https://git.mentality.rip/sjw/ngx_http_enhance_mp4_module"
|
||
|
license=('custom')
|
||
|
|
||
|
source=(https://git.mentality.rip/sjw/ngx_http_enhance_mp4_module/archive/master.tar.gz
|
||
|
)
|
||
|
|
||
|
prepare() {
|
||
|
cp -r /usr/src/nginx .
|
||
|
}
|
||
|
|
||
|
build() {
|
||
|
cd "$srcdir"/nginx
|
||
|
./configure --with-compat --add-dynamic-module=../ngx_http_enhance_mp4_module
|
||
|
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
|
||
|
}
|
||
|
|
||
|
|