diff options
author | Frank Tang | 2018-10-31 23:35:03 +0800 |
---|---|---|
committer | Frank Tang | 2018-10-31 23:35:03 +0800 |
commit | 6a9b2d6c1c87d05e572a680c2ddb1379087023ff (patch) | |
tree | 6f649fa7609e29e31426660d8cc91a7f2c00848a /PKGBUILD | |
download | aur-6a9b2d6c1c87d05e572a680c2ddb1379087023ff.tar.gz |
init
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c30ae18f51b0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Frank Tang <roadtang@gmail.com> + +pkgname=nginx-mod-vod +pkgver=1.24 +pkgrel=1 + +_modname="nginx-vod-module" +_nginxver="$(/bin/nginx -v 2>&1 | grep -Eo '([[:digit:]]|\.)+')" + +pkgdesc="Module for nginx that adds VOD packager/support" +arch=('i686' 'x86_64') +depends=('nginx') +url="https://github.com/kaltura/nginx-vod-module" +license=('BSD') + +source=( + http://nginx.org/download/nginx-$_nginxver.tar.gz + http://nginx.org/download/nginx-$_nginxver.tar.gz.asc + https://github.com/kaltura/$_modname/archive/$pkgver.tar.gz +) +sha256sums=('SKIP' + 'SKIP' + 'b3cad8e3047556955fa028bcc68e7af46d19343942cb7984ad25e6f44d614ddf') +validpgpkeys=("B0F4253373F8F6F510D42178520A9993A1C052F8") + +build() { + cd "$srcdir"/nginx-$_nginxver + + ./configure --with-compat --add-dynamic-module=../$_modname-$pkgver + + make modules +} + +package() { + cd "$srcdir"/nginx-$_nginxver/objs + for mod in *.so; do + install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod + done +} |