summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancoism902020-01-13 15:36:06 +0100
committerfrancoism902020-01-13 15:36:06 +0100
commit2b9df3ba781b8eabf25c9af2d5ca692c849c50f3 (patch)
tree31f600745c44ac5db7deaf295c1c44b68c37d500
downloadaur-2b9df3ba781b8eabf25c9af2d5ca692c849c50f3.tar.gz
Initial commit
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD60
2 files changed, 82 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..684401008ee3
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = nginx-mainline-mod-vod-git
+ pkgdesc = NGINX-based MP4 Repackager
+ pkgver = r1252.f453ef8
+ pkgrel = 1
+ url = https://github.com/kaltura/nginx-vod-module
+ arch = i686
+ arch = x86_64
+ license = CUSTOM
+ makedepends = git
+ depends = nginx-mainline=1.17.7
+ provides = nginx-mainline-mod-vod
+ conflicts = nginx-mainline-mod-vod
+ source = https://nginx.org/download/nginx-1.17.7.tar.gz
+ source = https://nginx.org/download/nginx-1.17.7.tar.gz.asc
+ source = ngx_vod::git+https://github.com/kaltura/nginx-vod-module.git
+ validpgpkeys = B0F4253373F8F6F510D42178520A9993A1C052F8
+ sha256sums = b62756842807e5693b794e5d0ae289bd8ae5b098e66538b2a91eb80f25c591ff
+ sha256sums = SKIP
+ sha256sums = SKIP
+
+pkgname = nginx-mainline-mod-vod-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..e8fef81a3484
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,60 @@
+# Maintainer: Francois Menning <f.menning@pm.me>
+# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
+
+_modname="ngx_vod"
+_nginxver=1.17.7
+
+pkgname=nginx-mainline-mod-vod-git
+pkgver=r1252.f453ef8
+pkgrel=1
+pkgdesc="NGINX-based MP4 Repackager"
+arch=('i686' 'x86_64')
+depends=("nginx-mainline=$_nginxver")
+makedepends=('git')
+provides=('nginx-mainline-mod-vod')
+conflicts=('nginx-mainline-mod-vod')
+url="https://github.com/kaltura/nginx-vod-module"
+license=('CUSTOM')
+
+source=(
+ https://nginx.org/download/nginx-$_nginxver.tar.gz{,.asc}
+ "$_modname::git+https://github.com/kaltura/nginx-vod-module.git"
+)
+
+validpgpkeys=(
+ 'B0F4253373F8F6F510D42178520A9993A1C052F8' # Maxim Dounin <mdounin@mdounin.ru>
+)
+
+sha256sums=('b62756842807e5693b794e5d0ae289bd8ae5b098e66538b2a91eb80f25c591ff'
+ 'SKIP'
+ 'SKIP')
+
+pkgver() {
+ cd "$_modname"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$srcdir"/$_modname
+ sed 's@/usr/local@/usr@' -i config
+}
+
+build() {
+ cd "$srcdir"/nginx-$_nginxver
+
+ ./configure --with-compat --add-dynamic-module=../$_modname \
+ --with-file-aio \
+ --with-cc-opt="-O3"
+
+ make modules
+}
+
+package() {
+ install -Dm644 "$srcdir"/$_modname/LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+ cd "$srcdir"/nginx-$_nginxver/objs
+ for mod in ngx_*.so; do
+ install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
+ done
+}