summaryrefslogtreecommitdiff
path: root/pcr/gringo/PKGBUILD
blob: 3f184b95ef2d8bab0b05afc16594777ec4a4fc0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Maintainer (Arch): Vincent Bernardoff <vb@luminar.eu.org>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>

pkgname=gringo
groups=('potassco')
pkgver=4.5.4
pkgrel=1
pkgdesc="Grounding tools for (disjunctive) logic programs."
arch=('x86_64' 'i686' 'armv7h')
url="http://potassco.sourceforge.net/"
license=('GPL3')
depends=()
makedepends=('patch' 'bison' 're2c' 'scons')
source=(
    "http://downloads.sourceforge.net/project/potassco/${pkgname}/${pkgver}/${pkgname}-${pkgver}-source.tar.gz"
    "https://sourceforge.net/p/potassco/bugs/_discuss/thread/5d530430/4fdf/attachment/include-math.patch.0"
)
sha1sums=(
    5eb5e077cf9e1a87baf2c18322e431158090d656
    52a073676bbf22859cc3f4566f5c2765f3a07876
)

build() {
    cd "${srcdir}/${pkgname}-${pkgver}-source"
    patch -p0 < "${srcdir}/include-math.patch.0"
    scons --build-dir=release ${pkgname}
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}-source/build/release"
    install -D ${pkgname} ${pkgdir}/usr/bin/${pkgname}
}