community/z3 to 4.8.8-2

This commit is contained in:
Kevin Mihelich 2020-09-07 21:21:47 +00:00
parent 7357a2029f
commit 3f1d458d78

View file

@ -8,13 +8,13 @@
pkgbase=z3
pkgname=('z3' 'python-z3')
pkgver=4.8.8
pkgrel=1
pkgrel=2
pkgdesc='High-performance theorem prover'
url='https://github.com/Z3Prover/z3'
arch=('x86_64')
license=('MIT')
# 'java-environment-common' 'mono' 'ocaml' 'ocaml-findlib'
makedepends=('cmake' 'python' 'python-setuptools' 'gcc-libs' 'gmp')
makedepends=('cmake' 'python' 'python-setuptools' 'gcc-libs')
source=(https://github.com/Z3Prover/z3/archive/z3-${pkgver}.tar.gz)
sha512sums=('a6823cadb7cdad11b8f0db1530676c0ec4853886dfb3c4dbc5b798c5dbd445afb0c61675f81cb7f99c1b1734d9cd0ec96a07c68a948da3c25801fc6767fea47f')
@ -31,13 +31,12 @@ build() {
-DCMAKE_INSTALL_LIBDIR=lib \
-DZ3_LINK_TIME_OPTIMIZATION=OFF \
-DZ3_BUILD_PYTHON_BINDINGS=1 \
-DPYTHON_EXECUTABLE=/usr/bin/python \
-DZ3_USE_LIB_GMP=1
-DPYTHON_EXECUTABLE=/usr/bin/python
make
}
package_z3() {
depends=('gcc-libs' 'gmp')
depends=('gcc-libs')
provides=('libz3' 'libz3.so')
cd ${pkgbase}-z3-${pkgver}/build
make DESTDIR="${pkgdir}" install
@ -46,7 +45,7 @@ package_z3() {
}
package_python-z3() {
depends=('python' 'libz3')
depends=('python' 'z3')
cd ${pkgbase}-z3-${pkgver}/build
make DESTDIR="${pkgdir}" install
install -Dm 644 ../LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"