summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 006037fb1947c9df3421af9318f685c5c5c6b47f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Contributor: Roman Voropaev <voropaev.roma@gmail.com>

pkgbase='nginx-unit'
pkgname=('nginx-unit-python' 'nginx-unit-php')
_shortname='unit'
pkgver=0.3
pkgrel=2
pkgdesc="Dynamic web application server, designed to run applications in multiple languages."
arch=('i686' 'x86_64')
url="http://unit.nginx.org/"
license=('Apache-2.0')
source=($pkgbase-$pkgver.tar.gz::"https://hg.nginx.org/$_shortname/archive/$pkgver.tar.gz")
md5sums=("62ac119c9e345e0b447356b543111b33")
makedepends=('php-embed' 'python')

build() {
  cd "$srcdir"/$_shortname-$pkgver
  ./configure --prefix=/usr
  ./configure python
  ./configure php
  make all
}

package_nginx-unit() {
  cd "$srcdir"/$_shortname-$pkgver
  make DESTDIR="$pkgdir" unitd-install
}

package_nginx-unit-python() {
  depends=('nginx-unit' 'python')
  cd "$srcdir"/$_shortname-$pkgver
  make DESTDIR="$pkgdir" python-install
}

package_nginx-unit-php() {
  depends=('nginx-unit' 'php')
  cd "$srcdir"/$_shortname-$pkgver
  make DESTDIR="$pkgdir" php-install
}