summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 82952ffa637ad7c3f3975513f5d67efcd278f458 (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
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Sam Linnfer <littlelightlittlefire@gmail.com>
pkgname=souffle-git
pkgver=r3910.7ce84469
pkgrel=1
pkgdesc="Soufflé is a translator of declarative Datalog programs into the C++ language"
arch=('any')
url="https://github.com/souffle-lang/souffle"
license=('UPL')
groups=()
depends=('sqlite' 'python' 'zlib')
makedepends=('git' 'autoconf' 'automake' 'bison' 'doxygen' 'flex' 'sqlite' 'libtool' 'jdk8-openjdk' 'pkg-config' 'python' 'zlib' 'mcpp')
provides=('souffle-git')
conflicts=('souffle-git')
backup=()
options=()
install=
noextract=()
source=('git+https://github.com/souffle-lang/souffle.git')
md5sums=('SKIP')

_gitname=souffle

pkgver() {
    cd "$srcdir/${pkgname%-git}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "$srcdir/${pkgname%-git}"
    sh ./bootstrap
    ./configure --prefix=/usr

    make -j
}

check() {
    cd "$srcdir/${pkgname%-git}"
    TESTSUITEFLAGS=-j8 make check
}

package() {
    cd "$srcdir/${pkgname%-git}"
    make DESTDIR="$pkgdir/" install
}