[arch-commits] Commit in nginx/trunk (PKGBUILD)

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Mon Aug 7 10:55:38 UTC 2017


    Date: Monday, August 7, 2017 @ 10:55:37
  Author: bpiotrowski
Revision: 301725

Add check() function

Modified:
  nginx/trunk/PKGBUILD

----------+
 PKGBUILD |   40 ++++++++++++++++++++++++----------------
 1 file changed, 24 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-08-07 10:49:09 UTC (rev 301724)
+++ PKGBUILD	2017-08-07 10:55:37 UTC (rev 301725)
@@ -9,27 +9,32 @@
 pkgver=1.12.1
 pkgrel=1
 pkgdesc='Lightweight HTTP server and IMAP/POP3 proxy server'
-arch=('i686' 'x86_64')
+arch=(i686 x86_64)
 url='https://nginx.org'
-license=('custom')
-depends=('pcre' 'zlib' 'openssl' 'geoip')
-backup=('etc/nginx/fastcgi.conf'
-        'etc/nginx/fastcgi_params'
-        'etc/nginx/koi-win'
-        'etc/nginx/koi-utf'
-        'etc/nginx/mime.types'
-        'etc/nginx/nginx.conf'
-        'etc/nginx/scgi_params'
-        'etc/nginx/uwsgi_params'
-        'etc/nginx/win-utf'
-        'etc/logrotate.d/nginx')
+license=(custom)
+depends=(pcre zlib openssl geoip)
+makedepends=(mercurial)
+checkdepends=(perl perl-gd perl-io-socket-ssl perl-fcgi perl-cache-memcached
+              memcached ffmpeg inetutils) 
+backup=(etc/nginx/fastcgi.conf
+        etc/nginx/fastcgi_params
+        etc/nginx/koi-win
+        etc/nginx/koi-utf
+        etc/nginx/mime.types
+        etc/nginx/nginx.conf
+        etc/nginx/scgi_params
+        etc/nginx/uwsgi_params
+        etc/nginx/win-utf
+        etc/logrotate.d/nginx)
 install=nginx.install
 source=($url/download/nginx-$pkgver.tar.gz{,.asc}
+        hg+http://hg.nginx.org/nginx-tests#revision=cbda704b3093
         service
         logrotate)
-validpgpkeys=('B0F4253373F8F6F510D42178520A9993A1C052F8') # Maxim Dounin <mdounin at mdounin.ru>
+validpgpkeys=(B0F4253373F8F6F510D42178520A9993A1C052F8) # Maxim Dounin <mdounin at mdounin.ru>
 md5sums=('a307e74aca95403e5ee00f153807ce58'
          'SKIP'
+         'SKIP'
          'ef491e760e7c1ffec9ca25441a150c83'
          '6a01fb17af86f03707c8ae60f98a2dc2')
 
@@ -92,6 +97,11 @@
   make
 }
 
+check() {
+  cd nginx-tests
+  TEST_NGINX_BINARY="$srcdir/$pkgname-$pkgver/objs/nginx" prove .
+}
+
 package() {
   cd $pkgname-$pkgver
   make DESTDIR="$pkgdir" install
@@ -126,5 +136,3 @@
       "$pkgdir/usr/share/vim/vimfiles/$i/nginx.vim"
   done
 }
-
-# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list