aboutsummaryrefslogtreecommitdiffstats
path: root/testing/unit/APKBUILD
blob: 168bdb9c8cc3a229f231ef623aaf6583d3d3c1a7 (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
# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=unit
pkgver=0.6
pkgrel=0
pkgdesc="NGINX Unit is a dynamic web application server"
url="https://unit.nginx.org/"
arch="all"
license="Apache2"
depends=""
makedepends="python3-dev"
source="https://unit.nginx.org/download/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure --prefix=/usr
	./configure python --config=python3-config
	make
}

check() {
	cd "$builddir"
	./test/run.py
}

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

sha512sums="5b667b1e7382df561574da25799c13ab3c1fc9f2ed975a61455589150d7936149816d3c7c1734abe38a1440a759ee225db3509f5696b4fae9fc90643a0b8ae79  unit-0.6.tar.gz"