aboutsummaryrefslogblamecommitdiffstats
path: root/testing/unit/APKBUILD
blob: d38dddb7c127dedeb22ac7f787e44eb660cb3f7c (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                    
          



                                                        
                    






                                                                









                                                         












                                      
                                                                                                                                                              
# 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"
	./configure python \
		--config=python3-config
	make
}

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

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

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