diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2022-05-28 20:38:24 -0500 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2022-10-21 18:34:01 -0500 |
commit | 66185194b969a0fdd077d1a29577a64cf11d0899 (patch) | |
tree | ab981dee14a988b758ca78dc92dd972e6447954d | |
parent | 44f5a290e36979eaa4059ee695ec9478fd8bf3a5 (diff) | |
download | packages-66185194b969a0fdd077d1a29577a64cf11d0899.tar.gz packages-66185194b969a0fdd077d1a29577a64cf11d0899.tar.bz2 packages-66185194b969a0fdd077d1a29577a64cf11d0899.tar.xz packages-66185194b969a0fdd077d1a29577a64cf11d0899.zip |
user/z3: Update to 4.8.17, switch to CMake
Upstream recommends CMake for packaging. This also resolves the issue
where the SONAME links were not being generated, causing dep errors.
Fixes: #643
-rw-r--r-- | user/z3/APKBUILD | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/user/z3/APKBUILD b/user/z3/APKBUILD index 1fadaf24b..10e2636a0 100644 --- a/user/z3/APKBUILD +++ b/user/z3/APKBUILD @@ -1,14 +1,14 @@ # Contributor: A. Wilcox <awilfox@adelielinux.org> # Maintainer: A. Wilcox <awilfox@adelielinux.org> pkgname=z3 -pkgver=4.8.8 +pkgver=4.8.17 pkgrel=0 pkgdesc="Mathematical theorem prover" url=" " arch="all" license="MIT" depends="" -makedepends="gmp-dev python3-dev cmd:which" +makedepends="cmake gmp-dev python3-dev cmd:which" subpackages="$pkgname-dev py3-$pkgname:py3:noarch" source="https://github.com/Z3Prover/z3/archive/z3-$pkgver.tar.gz" builddir="$srcdir/z3-z3-$pkgver" @@ -18,10 +18,18 @@ pmmx) options="$options textrels";; esac build() { - PYTHON=python3 ./configure \ - --prefix=/usr \ - --gmp \ - --python + cmake \ + -DCMAKE_INSTALL_PREFIX="/usr" \ + -DCMAKE_INSTALL_LIBDIR="lib" \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DZ3_BUILD_LIBZ3_SHARED=TRUE \ + -DZ3_USE_LIB_GMP=TRUE \ + -DZ3_BUILD_PYTHON_BINDINGS=TRUE \ + -DZ3_INSTALL_PYTHON_BINDINGS=TRUE \ + -DPYTHON_EXECUTABLE=/usr/bin/python3 \ + -DZ3_INCLUDE_GIT_DESCRIBE=FALSE \ + -DZ3_INCLUDE_GIT_HASH=FALSE \ + -Bbuild . make -C build } @@ -41,4 +49,4 @@ py3() { mv "$pkgdir"/usr/lib/python3* "$subpkgdir"/usr/lib/ } -sha512sums="a6823cadb7cdad11b8f0db1530676c0ec4853886dfb3c4dbc5b798c5dbd445afb0c61675f81cb7f99c1b1734d9cd0ec96a07c68a948da3c25801fc6767fea47f z3-4.8.8.tar.gz" +sha512sums="95517014ec1798c2552253dd5cde6f955896ab297a4f56294f4bc6f2c5428069015f513c6eb9a090a809cfcf4cb1cc38cc83818f19b5b1051e4e6c06f973747d z3-4.8.17.tar.gz" |