Skip to content
Snippets Groups Projects
Commit 6e696be8 authored by Bartłomiej Piotrowski's avatar Bartłomiej Piotrowski
Browse files

1.16.1-2

parent a9690261
No related branches found
Tags 1.16.1-2
No related merge requests found
......@@ -4,9 +4,10 @@
# Contributor: Miroslaw Szot <mss@czlug.icis.pcz.pl>
# Contributor: Daniel Micay <danielmicay@gmail.com>
pkgname=nginx
pkgbase=nginx
pkgname=(nginx nginx-src)
pkgver=1.16.1
pkgrel=1
pkgrel=2
pkgdesc='Lightweight HTTP server and IMAP/POP3 proxy server'
arch=(x86_64)
url='https://nginx.org'
......@@ -70,8 +71,12 @@ _common_flags=(
_stable_flags=(
)
prepare() {
cp -r $pkgbase-$pkgver{,-src}
}
build() {
cd $pkgname-$pkgver
cd $pkgbase-$pkgver
./configure \
--prefix=/etc/nginx \
......@@ -98,11 +103,11 @@ build() {
check() {
cd nginx-tests
TEST_NGINX_BINARY="$srcdir/$pkgname-$pkgver/objs/nginx" prove .
TEST_NGINX_BINARY="$srcdir/$pkgbase-$pkgver/objs/nginx" prove .
}
package() {
cd $pkgname-$pkgver
package_nginx() {
cd $pkgbase-$pkgver
make DESTDIR="$pkgdir" install
sed -e 's|\<user\s\+\w\+;|user html;|g' \
......@@ -136,3 +141,9 @@ package() {
"$pkgdir/usr/share/vim/vimfiles/$i/nginx.vim"
done
}
package_nginx-src() {
depends=()
install -d "$pkgdir/usr/src"
cp -r $pkgbase-$pkgver-src "$pkgdir/usr/src/nginx"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment