# Maintainer: Felix Yan # Maintainer: Levente Polyak # Contributor: rudy.matela # ALARM: Kevin Mihelich # - set -DZ3_LINK_TIME_OPTIMIZATION=OFF pkgbase=z3 pkgname=('z3' 'python-z3') pkgver=4.10.1 pkgrel=1 pkgdesc='High-performance theorem prover' url='https://github.com/Z3Prover/z3' arch=('x86_64') license=('MIT') # 'java-environment-common' 'mono' 'ocaml' 'ocaml-findlib' makedepends=('glibc' 'cmake' 'ninja' 'python' 'python-setuptools' 'gcc-libs') source=(https://github.com/Z3Prover/z3/archive/z3-$pkgver.tar.gz) sha512sums=('6c8e9f074d4b87f9388384d10dcde51fbdf0e1ee58cf2a5d321e3779ac5054a0ec7bfed3df4f8d3563c457ca7f5189ca310909656e500b6a8803f0df2c693baf') b2sums=('2b857b7a1b3b71e0b7d2c55b8971fb27115f65b6995e0330786d24badfae563e4a63140790c197255ec566b78ff699c5f0aac99ffeb5eb45c05b2175f3395c20') build() { cd $pkgbase-z3-$pkgver cmake \ -Bbuild \ -GNinja \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DZ3_LINK_TIME_OPTIMIZATION=OFF \ -DZ3_BUILD_PYTHON_BINDINGS=1 \ -DPYTHON_EXECUTABLE=/usr/bin/python ninja -C build } package_z3() { depends=('glibc' 'gcc-libs') provides=('libz3' 'libz3.so') cd $pkgbase-z3-$pkgver DESTDIR="${pkgdir}" ninja -C build install install -Dm 644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname rm -r "$pkgdir"/usr/lib/python* } package_python-z3() { depends=('python' 'z3') cd $pkgbase-z3-$pkgver DESTDIR="${pkgdir}" ninja -C build install install -Dm 644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname cd "$pkgdir" rm -r usr/include usr/bin usr/lib/{cmake,pkgconfig,lib*} python -m compileall . python -O -m compileall . } # vim: ts=2 sw=2 et: