[arch-commits] Commit in z3/repos (testing-x86_64 testing-x86_64/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Wed Oct 31 10:00:53 UTC 2018


    Date: Wednesday, October 31, 2018 @ 10:00:52
  Author: felixonmars
Revision: 399922

archrelease: copy trunk to testing-x86_64

Added:
  z3/repos/testing-x86_64/
  z3/repos/testing-x86_64/PKGBUILD
    (from rev 399921, z3/trunk/PKGBUILD)

----------+
 PKGBUILD |   69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 69 insertions(+)

Copied: z3/repos/testing-x86_64/PKGBUILD (from rev 399921, z3/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2018-10-31 10:00:52 UTC (rev 399922)
@@ -0,0 +1,69 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: rudy.matela
+
+pkgbase=z3
+pkgname=('z3' 'python-z3' 'python2-z3')
+pkgver=4.8.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=('cmake' 'python2' 'python2-setuptools' 'python' 'python-setuptools' 'gcc-libs' 'gmp')
+optdepends=('python2-setuptools: bindings for python2')
+source=(https://github.com/Z3Prover/z3/archive/${pkgbase}-${pkgver}.tar.gz)
+sha512sums=('f3311d07f6375d3d294d9c495b0ce4022258dd95b1f6bec93bdf5a60d074c75fd13daf1da7b67753acb4084e33395088513dfd85fe5c2cf76913ba0107e5782b')
+
+prepare() {
+  cd ${pkgbase}-${pkgbase}-${pkgver}
+  mkdir -p build
+}
+
+build() {
+  cd ${pkgbase}-${pkgbase}-${pkgver}/build
+  cmake .. \
+    -DCMAKE_BUILD_TYPE=Release \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib \
+    -DBUILD_PYTHON_BINDINGS=1 \
+    -DPYTHON_EXECUTABLE=/usr/bin/python \
+    -DUSE_LIB_GMP=1
+  make
+}
+
+package_z3() {
+  depends=('gcc-libs' 'gmp')
+  provides=('libz3' 'libz3.so')
+  cd ${pkgbase}-${pkgbase}-${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() {
+  depends=('python' 'libz3')
+  cd ${pkgbase}-${pkgbase}-${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 .
+}
+
+package_python2-z3() {
+  depends=('python2' 'libz3')
+  cd ${pkgbase}-${pkgbase}-${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*
+  mv usr/lib/python* usr/lib/python2.7
+  [ -n "${SOURCE_DATE_EPOCH}" ] && find . -exec touch -h -d @$SOURCE_DATE_EPOCH {} +
+  python2 -m compileall .
+  python2 -O -m compileall .
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list