znc: use ninja

This commit is contained in:
Christoph Reiter 2025-03-30 10:24:50 +02:00
parent ef818cedd5
commit 1e6a171e8f

View File

@ -2,7 +2,7 @@
pkgname=znc
pkgver=1.9.1
pkgrel=1
pkgrel=2
pkgdesc='An IRC bouncer with modules & scripts support'
url='https://znc.in/'
msys2_repository_url="https://github.com/znc/znc"
@ -25,6 +25,7 @@ makedepends=('cmake'
'swig'
'gcc'
#'tcl'
'ninja'
)
optdepends=('tcl: modtcl module'
'python: modpython module'
@ -44,6 +45,7 @@ build() {
mkdir -p "${srcdir}/build-${CARCH}" && cd "${srcdir}/build-${CARCH}"
cmake \
-GNinja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=OFF \
-DCMAKE_BUILD_TYPE=Release \
@ -52,12 +54,12 @@ build() {
-DWANT_PYTHON=ON \
-DWANT_I18N=OFF \
../${pkgname}-${pkgver}
make
cmake --build .
}
package() {
cd "${srcdir}/build-${CARCH}"
make DESTDIR="${pkgdir}" install
DESTDIR="${pkgdir}" cmake --install .
python3 -m compileall -o 0 -o 1 -s "${pkgdir}" "${pkgdir}/usr/lib/znc"