diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2022-05-28 20:38:24 -0500 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2022-06-12 23:51:54 +0000 |
commit | d53651c11b79c52e25e743c392cdca56a0e93588 (patch) | |
tree | 92f8eb32c78a841ac9966555392714323540672e /user/z3 | |
parent | 648ae4ea79b5b7e05754ec4576b58acd7e30bbc8 (diff) | |
download | packages-d53651c11b79c52e25e743c392cdca56a0e93588.tar.gz packages-d53651c11b79c52e25e743c392cdca56a0e93588.tar.bz2 packages-d53651c11b79c52e25e743c392cdca56a0e93588.tar.xz packages-d53651c11b79c52e25e743c392cdca56a0e93588.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
Diffstat (limited to 'user/z3')
-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" |