# Contributor: Sören Tempel # Maintainer: pkgname=clingo pkgver=5.6.2 pkgrel=2 pkgdesc="Grounder and solver for logic programs" url="https://potassco.org/clingo/" arch="all" license="MIT" depends="!clasp" # both provide /usr/bin/clasp makedepends="python3-dev cmake samurai" subpackages="$pkgname-dev $pkgname-libs py3-$pkgname:py" options="!check" source="https://github.com/potassco/clingo/archive/v$pkgver/clingo-$pkgver.tar.gz" replaces="gringo" # backwards compatibility build() { cmake -B build -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_BUILD_TYPE=None \ -DCLINGO_BUILD_TESTS="$(want_check && echo ON || echo OFF)" cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build } py() { pkgdesc="Python bindings for clingo" depends="python3" amove usr/lib/python* } sha512sums=" 1187ddd99f06b055473c5be09a13cf1cfc02d8895eb12aaa5bf902da3b73c19fec80b2c8f1060d2ae6c93b1cdbec469a1b82d8b560f83dd09db3237e34a23f5b clingo-5.6.2.tar.gz "