mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-28 08:52:07 +01:00
56 lines
1.3 KiB
Plaintext
56 lines
1.3 KiB
Plaintext
# Contributor: André Klitzing <aklitzing@gmail.com>
|
|
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
|
|
# Maintainer: Andy Postnikov <apostnikov@gmail.com>
|
|
pkgname=unit-php83
|
|
pkgver=1.31.1
|
|
pkgrel=0
|
|
pkgdesc="PHP 8.3 module for NGINX Unit"
|
|
url="https://unit.nginx.org/"
|
|
arch="all"
|
|
license="Apache-2.0"
|
|
_phpver=83
|
|
depends="unit"
|
|
makedepends="
|
|
linux-headers
|
|
openssl-dev>3
|
|
php$_phpver-dev
|
|
php$_phpver-embed
|
|
"
|
|
source="https://unit.nginx.org/download/unit-$pkgver.tar.gz
|
|
phpver.patch
|
|
"
|
|
builddir="$srcdir/unit-$pkgver"
|
|
|
|
build() {
|
|
./configure \
|
|
--prefix="/usr" \
|
|
--localstatedir="/var" \
|
|
--statedir="/var/lib/unit" \
|
|
--control="unix:/run/control.unit.sock" \
|
|
--pid="/run/unit.pid" \
|
|
--log="/var/log/unit.log" \
|
|
--tmpdir=/tmp \
|
|
--modulesdir="/usr/lib/unit/modules" \
|
|
--openssl \
|
|
--user=unit \
|
|
--group=unit \
|
|
--tests
|
|
./configure php --module=php$_phpver --config=php-config$_phpver
|
|
|
|
make php$_phpver
|
|
make tests
|
|
}
|
|
|
|
check() {
|
|
./build/tests
|
|
}
|
|
|
|
package() {
|
|
make php$_phpver-install DESTDIR="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
28e5f1e88b9e5e21c5094f901227e193137c120e4af3f2950e113d118a301cabb17abf9f0fea8fc8893f36f6e9ae09f86bbf7a323999da34e71e42615937c57c unit-1.31.1.tar.gz
|
|
2fe9966f54fd5d23316810b0260d966e2093c303d8a9ecea693971fe2243c579ed5db0e41e01fc01e56801387bd19cc72f5b26c45d21e5d48084e9ded384965b phpver.patch
|
|
"
|