diff options
author | Clar Fon | 2019-01-29 18:02:26 -0500 |
---|---|---|
committer | Clar Fon | 2019-04-27 17:10:37 -0400 |
commit | 4fca2059c448610d2d4cfa6c26a4687c741f5010 (patch) | |
tree | 2fbfa90f8ff9ec3be784db670b268072ed06dc1f | |
download | aur-4fca2059c448610d2d4cfa6c26a4687c741f5010.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | .gitignore | 6 | ||||
-rw-r--r-- | PKGBUILD | 48 |
3 files changed, 75 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9851d53c1e41 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = nginx-mainline-mod-uaparser-git + pkgdesc = User agent parser module for mainline nginx + pkgver = r1.077c554 + pkgrel = 1 + url = https://github.com/clarfon/nginx-uaparser-module + arch = i686 + arch = x86_64 + license = CC0 + makedepends = nginx-mainline=1.15.12 + depends = nginx-mainline + depends = uap-cpp-git + source = https://nginx.org/download/nginx-1.15.12.tar.gz + source = https://nginx.org/download/nginx-1.15.12.tar.gz.asc + source = git+https://github.com/clarfon/nginx-uaparser-module.git + validpgpkeys = B0F4253373F8F6F510D42178520A9993A1C052F8 + sha256sums = 3d5b90aa17de1700709ae4ec6c4d73d87c888b06c510391bf7104b006fdb2abe + sha256sums = SKIP + sha256sums = SKIP + +pkgname = nginx-mainline-mod-uaparser-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..868e9c770afb --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +*.asc +*.tar.gz +*.pkg.tar.xz +src/ +pkg/ +nginx-uaparser-module/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a35f4e00d568 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com> + +pkgname=nginx-mainline-mod-uaparser-git +pkgver=r1.077c554 +pkgrel=1 + +_modname="nginx-uaparser-module" +_nginxver=1.15.12 + +pkgdesc="User agent parser module for mainline nginx" +arch=('i686' 'x86_64') +makedepends=("nginx-mainline=$_nginxver") +depends=('nginx-mainline' 'uap-cpp-git') +url="https://github.com/clarfon/nginx-uaparser-module" +license=('CC0') + +source=( + https://nginx.org/download/nginx-$_nginxver.tar.gz{,.asc} + git+https://github.com/clarfon/$_modname.git +) + +validpgpkeys=( + 'B0F4253373F8F6F510D42178520A9993A1C052F8' # Maxim Dounin <mdounin@mdounin.ru> +) + +sha256sums=( + '3d5b90aa17de1700709ae4ec6c4d73d87c888b06c510391bf7104b006fdb2abe' + 'SKIP' + 'SKIP' +) + +pkgver() { + cd "${srcdir}/${_modname}" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + cd "${srcdir}/nginx-${_nginxver}" + ./configure --with-compat --add-dynamic-module=../$_modname + make modules +} + +package() { + cd "$srcdir"/nginx-$_nginxver/objs + for mod in ngx_*.so; do + install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod + done +} |