summaryrefslogblamecommitdiff
path: root/user/z3/APKBUILD
blob: adac93a713265259ea819133490e95e82b57680f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12


                                                  
            







                                                  

                                                                 
























                                                           
                                                                                                                                                              
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=z3
pkgver=4.8.7
pkgrel=0
pkgdesc="Mathematical theorem prover"
url=" "
arch="all"
license="MIT"
depends=""
makedepends="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"

build() {
	PYTHON=python3 ./configure \
		--prefix=/usr \
		--gmp \
		--python
	make -C build
}

check() {
	make -C build test-z3
	build/test-z3 /a
}

package() {
	make -C build DESTDIR="$pkgdir" install
}

py3() {
	pkgdesc="$pkgdesc (Python bindings)"
	depends="python3"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/python3* "$subpkgdir"/usr/lib/
}

sha512sums="145e2b2f1fa4edd0917107c7e1d54d779c7ed85c48af2ce6def4c90d1c4db05f74c9657e173cedf48770589fbe484c97fa1923295271cd3792523ffc4f67ed0c  z3-4.8.7.tar.gz"