summaryrefslogtreecommitdiff
path: root/pcr/gringo/PKGBUILD
blob: a026568217c38bc5d01b677607f844a0c62bf963 (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
# Contributor (Arch) 	 : Vincent Bernardoff <vb@luminar.eu.org>
# Maintainer  (Parabola) : Aurélien DESBRIÈRES <aurelien@hackers.camp>

pkgname=gringo
groups=('potassco')
pkgver=4.3.0
pkgrel=1
pkgdesc="Grounding tools for (disjunctive) logic programs."
arch=('x86_64' 'i686' 'armv6h' 'armv7h')
url="http://potassco.sourceforge.net/"
license=('GPL3')
depends=()
makedepends=('bison' 're2c' 'scons')
source=(
    "http://downloads.sourceforge.net/project/potassco/${pkgname}/${pkgver}/${pkgname}-${pkgver}-source.tar.gz"
    "uint_max.patch")

build() {
    cd "${srcdir}/${pkgname}-${pkgver}-source"
    patch -p1 < "$srcdir/uint_max.patch"
    scons --build-dir=release ${pkgname}
}

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