# Contributor: Sören Tempel # Maintainer: Sören Tempel pkgname=z3 pkgver=4.8.3 pkgrel=1 pkgdesc="Theorem prover from Microsoft Research" url="https://github.com/Z3Prover/z3" arch="all !s390x !aarch64" license="MIT" depends="" makedepends="cmake python3" install="" subpackages="$pkgname-dev py3-$pkgname:py3:noarch" source="https://github.com/Z3Prover/$pkgname/archive/$pkgname-$pkgver.tar.gz immintrin-i386-only.patch fix-ppc64le-ptr-size.patch" builddir="$srcdir/$pkgname-$pkgname-$pkgver" build() { cd "$builddir" mkdir build && cd build cmake -G "Unix Makefiles" \ -DBUILD_PYTHON_BINDINGS=True \ -DINSTALL_PYTHON_BINDINGS=True \ -DPYTHON_EXECUTABLE=/usr/bin/python3 \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ -DCMAKE_C_FLAGS="$CFLAGS" \ .. make # Binary for running the unit tests make test-z3 } check() { cd "$builddir" ./build/test-z3 -a } package() { cd "$builddir/build" make DESTDIR="$pkgdir" install } py3() { pkgdesc="Python bindings for $pkgname" depends="python3" mkdir -p "$subpkgdir"/usr/lib/ mv "$pkgdir"/usr/lib/python3* \ "$subpkgdir"/usr/lib/ } sha512sums="34a2dca0083ed469fdaf5ac062dda26248633245607ddd9ef90629c5f76ae30f87bfa4191c04ba9be7a617bf182a1bd00b59fd2274699e12ece69b86088c8044 z3-4.8.3.tar.gz 4d9059b8a4c2d2217abdebc2d8e118adc37594b71e056ede488e2fe314c243dbb35efc413120ff110d54723e780b4e2daedefbc57e8a140c3bddb3e03630431c immintrin-i386-only.patch 3d019959a104b5fd5f72eeb3738cacbdb145764ad4844eeb2539b36fa3a8228ffa062a0899465d4881b6c226301aa09b129ef06a798744b2eec9f943e0d9d366 fix-ppc64le-ptr-size.patch"