aboutsummaryrefslogtreecommitdiffstats
path: root/testing/unit/APKBUILD
blob: d299f9ed9e5c1d481a370256089d473887a1bc75 (plain) (blame)
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
40
41
42
43
44
45
46
47
# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=unit
pkgver=1.1
pkgrel=0
pkgdesc="NGINX Unit is a dynamic web application server"
url="https://unit.nginx.org/"
arch="all"
license="Apache-2.0"
depends=""
makedepends="python3-dev"
source="https://unit.nginx.org/download/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"

	./configure \
		--prefix="/usr" \
		--state="/var/lib/unit" \
		--control="unix:/run/control.unit.sock" \
		--pid="/run/unit.pid" \
		--log="/var/log/unit.log" \
		--modules="/usr/lib/unit/modules" \
		--tests
	./configure python \
		--config=python3-config
	make
	make tests
}

check() {
	cd "$builddir"

	./build/tests

	# FIXME: Some tests are broken.
	#make install DESTDIR=".dest"
	#./test/run.py
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="89460e96d775df7f0c9d66011b59ca45ebe99e1e9e194f1800824ee1a3ae9c3f0207c9c749d34c250560ded6f1c3ad5b66fadcb3ffb2c62c5a6f5115944cea1f  unit-1.1.tar.gz"