aboutsummaryrefslogtreecommitdiffstats
path: root/testing/unit/APKBUILD
blob: add6e5da973fb3742afa7873bf8032533a44dafa (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=1.0
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="60c3b402cce0527d61ccdcee374b5bbd9371c9a8ee1e16657f8f26b98a4b6ee35ef812866d1618e76fe7c4d6a2950a823303f69961ee48f185b9cc2440569fbd  unit-1.0.tar.gz"