[arch-commits] Commit in nginx-mod-geoip2/repos (2 files)

Giancarlo Razzolini grazzolini at archlinux.org
Wed Apr 22 18:52:08 UTC 2020


    Date: Wednesday, April 22, 2020 @ 18:52:08
  Author: grazzolini
Revision: 617693

archrelease: copy trunk to community-staging-x86_64

Added:
  nginx-mod-geoip2/repos/community-staging-x86_64/
  nginx-mod-geoip2/repos/community-staging-x86_64/PKGBUILD
    (from rev 617692, nginx-mod-geoip2/trunk/PKGBUILD)

----------+
 PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

Copied: nginx-mod-geoip2/repos/community-staging-x86_64/PKGBUILD (from rev 617692, nginx-mod-geoip2/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-04-22 18:52:08 UTC (rev 617693)
@@ -0,0 +1,38 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=nginx-mod-geoip2
+pkgver=3.3
+pkgrel=2
+
+_modname="ngx_http_geoip2_module"
+
+pkgdesc="Nginx GeoIP2 module"
+arch=('x86_64')
+depends=('nginx' 'libmaxminddb')
+makedepends=('nginx-src')
+url="https://github.com/leev/ngx_http_geoip2_module"
+license=('BSD')
+
+source=(
+	https://github.com/leev/ngx_http_geoip2_module/archive/$pkgver/$_modname-$pkgver.tar.gz
+)
+validpgpkeys=(B0F4253373F8F6F510D42178520A9993A1C052F8) # Maxim Dounin <mdounin at mdounin.ru>
+sha256sums=('41378438c833e313a18869d0c4a72704b4835c30acaf7fd68013ab6732ff78a7')
+
+build() {
+  cp -r /usr/src/nginx .
+
+	cd "$srcdir"/nginx
+	./configure --with-compat --add-dynamic-module=../$_modname-$pkgver
+	make modules
+}
+
+package() {
+	install -Dm644 "$srcdir"/$_modname-$pkgver/LICENSE \
+	               "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+	cd "$srcdir"/nginx/objs
+	for mod in ngx_*.so; do
+		install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
+	done
+}


More information about the arch-commits mailing list