2019-11-22 19:33:24 +00:00
|
|
|
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
|
|
|
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
|
|
|
# Contributor: rudy.matela
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - set -DZ3_LINK_TIME_OPTIMIZATION=OFF
|
|
|
|
|
|
|
|
pkgbase=z3
|
|
|
|
pkgname=('z3' 'python-z3')
|
2020-05-10 22:01:32 +00:00
|
|
|
pkgver=4.8.8
|
2020-09-07 21:21:47 +00:00
|
|
|
pkgrel=2
|
2019-11-22 19:33:24 +00:00
|
|
|
pkgdesc='High-performance theorem prover'
|
|
|
|
url='https://github.com/Z3Prover/z3'
|
|
|
|
arch=('x86_64')
|
|
|
|
license=('MIT')
|
|
|
|
# 'java-environment-common' 'mono' 'ocaml' 'ocaml-findlib'
|
2020-09-07 21:21:47 +00:00
|
|
|
makedepends=('cmake' 'python' 'python-setuptools' 'gcc-libs')
|
2020-05-10 22:01:32 +00:00
|
|
|
source=(https://github.com/Z3Prover/z3/archive/z3-${pkgver}.tar.gz)
|
|
|
|
sha512sums=('a6823cadb7cdad11b8f0db1530676c0ec4853886dfb3c4dbc5b798c5dbd445afb0c61675f81cb7f99c1b1734d9cd0ec96a07c68a948da3c25801fc6767fea47f')
|
2019-11-22 19:33:24 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd ${pkgbase}-z3-${pkgver}
|
|
|
|
mkdir -p build
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${pkgbase}-z3-${pkgver}/build
|
|
|
|
cmake .. \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-DZ3_LINK_TIME_OPTIMIZATION=OFF \
|
|
|
|
-DZ3_BUILD_PYTHON_BINDINGS=1 \
|
2020-09-07 21:21:47 +00:00
|
|
|
-DPYTHON_EXECUTABLE=/usr/bin/python
|
2019-11-22 19:33:24 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package_z3() {
|
2020-09-07 21:21:47 +00:00
|
|
|
depends=('gcc-libs')
|
2019-11-22 19:33:24 +00:00
|
|
|
provides=('libz3' 'libz3.so')
|
|
|
|
cd ${pkgbase}-z3-${pkgver}/build
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
install -Dm 644 ../LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
|
|
rm -r "${pkgdir}"/usr/lib/python*
|
|
|
|
}
|
|
|
|
|
|
|
|
package_python-z3() {
|
2020-09-07 21:21:47 +00:00
|
|
|
depends=('python' 'z3')
|
2019-11-22 19:33:24 +00:00
|
|
|
cd ${pkgbase}-z3-${pkgver}/build
|
|
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
install -Dm 644 ../LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
|
|
|
|
cd "${pkgdir}"
|
|
|
|
rm -r usr/include usr/bin usr/lib/cmake usr/lib/lib*
|
|
|
|
python -m compileall .
|
|
|
|
python -O -m compileall .
|
|
|
|
}
|
|
|
|
|
|
|
|
# vim: ts=2 sw=2 et:
|