summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a3cfecc0fe44721943e3b85042640f2786899a74 (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
45
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Leonidas <marek@xivilization.net>

pkgname=yap
pkgver=6.3.3
pkgrel=1
pkgdesc='A high-performance Prolog compiler'
url='http://www.dcc.fc.up.pt/~vsc/yap/'
license=('PerlArtistic')
arch=('i686' 'x86_64')
depends=('gmp' 'unixodbc' 'libmariadbclient')
#makedepends=('texi2html' 'texinfo' 'jdk7-openjdk' 'texlive-plainextra')
#optdepends=('java-runtime-headless: Java Interface Library JPL')
#source=("http://www.dcc.fc.up.pt/~vsc/yap/${pkgname}-${pkgver}.tar.gz")
source=("https://github.com/vscosta/yap-6.3/archive/yap-$pkgver.tar.gz")
md5sums=('6d9d2e5617f53b077c8f7da0ada2731b')

# issues building java bindings and info pages?
# I leave those up to you to fix, dear reader

build() {
  cd "yap-6.3-yap-$pkgver"

  #patch -p1 -i ../friend-function.patch

  export CPPFLAGS+=" -fpermissive"
  ./configure \
    --prefix=/usr \
    --enable-threads \
    --enable-dynamic-loading \
    --enable-max-performance \
    --enable-max-memory 
    # --with-java="${JAVA_HOME}"
  make

  #make html
  #make pdf
}

package() {
  cd "yap-6.3-yap-$pkgver"

  make DESTDIR="${pkgdir}" install
  #make DESTDIR="${pkgdir}" install_docs
}