# Contributor: Sören Tempel # Maintainer: Sören Tempel pkgname=z3 pkgver=4.12.2 pkgrel=0 pkgdesc="Theorem prover from Microsoft Research" url="https://github.com/Z3Prover/z3" arch="all" license="MIT" makedepends="cmake python3 samurai" subpackages="$pkgname-dev py3-$pkgname:py3:noarch" source="https://github.com/Z3Prover/z3/archive/z3-$pkgver.tar.gz" builddir="$srcdir/z3-z3-$pkgver" build() { cmake -B build -G Ninja \ -DZ3_BUILD_PYTHON_BINDINGS=True \ -DZ3_INSTALL_PYTHON_BINDINGS=True \ -DPYTHON_EXECUTABLE=/usr/bin/python3 \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=MinSizeRel cmake --build build # Binary for running the unit tests cmake --build build --target test-z3 } check() { ./build/test-z3 -a } package() { DESTDIR="$pkgdir" cmake --install build } py3() { pkgdesc="Python bindings for $pkgname" depends="python3" amove usr/lib/python3* } sha512sums=" 375477cbbc9837b44e752c89916409d07bf6a73830b52878aab4f376f08b37dd5ab485da225744d394ab15f2a7e1014edc3be5eb9962934c440a8d55259317e2 z3-4.12.2.tar.gz "