mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
60 lines
1.9 KiB
Bash
60 lines
1.9 KiB
Bash
# 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-solver')
|
|
pkgver=4.11.0
|
|
pkgrel=1
|
|
pkgdesc='High-performance theorem prover'
|
|
url='https://github.com/Z3Prover/z3'
|
|
arch=('x86_64')
|
|
license=('MIT')
|
|
makedepends=('glibc' 'cmake' 'ninja' 'python' 'python-setuptools' 'gcc-libs'
|
|
'python-build' 'python-installer' 'python-wheel')
|
|
source=(https://github.com/Z3Prover/z3/archive/z3-$pkgver.tar.gz)
|
|
sha512sums=('a3fd7e013948de6683b16aca03641bb845d02187152bebdee8c62c2a3f80a7710a1d3b9aef9c1490c2340571bb225f457928ac57a2ed28c0084ced34bcf3e905')
|
|
b2sums=('5b59efdf74d5d358daf23f877a090b240909eab14bebb9f23c68c7eb7fb7f2258afc049665061f61d10c1e092382f707f094f12c20f33c7e06c7939275b231d0')
|
|
|
|
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-solver() {
|
|
depends=('python' 'python-setuptools' 'z3')
|
|
replaces=('python-z3')
|
|
conflicts=('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 -d /usr/lib "$pkgdir/usr/lib"
|
|
python -O -m compileall -d /usr/lib "$pkgdir/usr/lib"
|
|
}
|
|
|
|
# vim: ts=2 sw=2 et:
|