PKGBUILDs/community/z3/PKGBUILD

56 lines
1.7 KiB
Bash
Raw Normal View History

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')
2022-08-13 16:16:20 +00:00
pkgver=4.9.1
2022-01-12 00:23:05 +00:00
pkgrel=1
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'
2022-05-12 22:34:19 +00:00
makedepends=('glibc' 'cmake' 'ninja' 'python' 'python-setuptools' 'gcc-libs')
2021-07-16 18:40:18 +00:00
source=(https://github.com/Z3Prover/z3/archive/z3-$pkgver.tar.gz)
2022-08-13 16:16:20 +00:00
sha512sums=('0c44e10d039c3bf16591a7b94e3a3209bc334635106ac7ae4afda95541d13d4fc39214646662683c26b4874846e0d83813215e189ce5422d13f8ce7c2ac4db51')
b2sums=('b707084424b615a43dcefbc395d6cf0519f3d6ea3ab1cc8b34b1810d5eb241afa22eae694e4dfc756fff42179a5dabe10052f88aab02953154ada8334f7e0b64')
2019-11-22 19:33:24 +00:00
build() {
2022-05-12 22:34:19 +00:00
cd $pkgbase-z3-$pkgver
cmake \
-Bbuild \
2021-07-16 18:40:18 +00:00
-GNinja \
2019-11-22 19:33:24 +00:00
-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
2022-05-12 22:34:19 +00:00
ninja -C build
2019-11-22 19:33:24 +00:00
}
package_z3() {
2022-05-12 22:34:19 +00:00
depends=('glibc' 'gcc-libs')
2019-11-22 19:33:24 +00:00
provides=('libz3' 'libz3.so')
2022-05-12 22:34:19 +00:00
cd $pkgbase-z3-$pkgver
DESTDIR="${pkgdir}" ninja -C build install
install -Dm 644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname
2021-07-16 18:40:18 +00:00
rm -r "$pkgdir"/usr/lib/python*
2019-11-22 19:33:24 +00:00
}
package_python-z3() {
2020-09-07 21:21:47 +00:00
depends=('python' 'z3')
2022-05-12 22:34:19 +00:00
cd $pkgbase-z3-$pkgver
DESTDIR="${pkgdir}" ninja -C build install
install -Dm 644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname
2021-07-16 18:40:18 +00:00
cd "$pkgdir"
2020-09-12 19:20:52 +00:00
rm -r usr/include usr/bin usr/lib/{cmake,pkgconfig,lib*}
2019-11-22 19:33:24 +00:00
python -m compileall .
python -O -m compileall .
}
# vim: ts=2 sw=2 et: