2015-12-18 06:02:17 +00:00
|
|
|
# $Id$
|
2017-03-14 12:39:33 +00:00
|
|
|
# Maintainer: Alexander F Rødseth <xyproto@archlinux.org>
|
2015-12-18 06:02:17 +00:00
|
|
|
# Contributor: Jachym Barvinek <jachymb@gmail.com>
|
|
|
|
# Contributor: Thomas Dziedzic < gostrc at gmail >
|
|
|
|
# Contributor: John Proctor <jproctor@prium.net>
|
|
|
|
# Contributor: Juergen Hoetzel <juergen@archlinux.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - build aarch64 with -fPIC
|
|
|
|
|
|
|
|
pkgname=swi-prolog
|
2017-11-06 13:23:42 +00:00
|
|
|
pkgver=7.6.1
|
2017-02-27 13:41:01 +00:00
|
|
|
pkgrel=1
|
2015-12-18 06:02:17 +00:00
|
|
|
pkgdesc='Prolog environment'
|
|
|
|
arch=('x86_64' 'i686')
|
|
|
|
url='http://www.swi-prolog.org/'
|
|
|
|
license=('GPL' 'LGPL')
|
2017-11-06 13:23:42 +00:00
|
|
|
depends=('gmp' 'libarchive' 'openssl' 'readline')
|
|
|
|
makedepends=('libjpeg' 'libxft' 'libxinerama' 'libxpm' 'unixodbc')
|
2015-12-18 06:02:17 +00:00
|
|
|
optdepends=('unixodbc: for using the odbc4pl library'
|
|
|
|
'libjpeg: for using the pl2xpce library'
|
|
|
|
'libxpm: for using the pl2xpce library'
|
|
|
|
'libxinerama: for using the pl2xpce library'
|
|
|
|
'libxft: for using the pl2xpce library')
|
2017-11-06 13:23:42 +00:00
|
|
|
source=("http://www.swi-prolog.org/download/stable/src/swipl-${pkgver/_/-}.tar.gz") # invalid HTTPS cert
|
|
|
|
sha256sums=('24ada4bd016189fd417592edf1ffc74e4e51ee4f47e569f97e2d11f4d8f89ec3')
|
2015-12-18 06:02:17 +00:00
|
|
|
|
|
|
|
build() {
|
2017-02-27 13:41:01 +00:00
|
|
|
[[ $CARCH == "aarch64" ]] && CPPFLAGS+=" -fPIC"
|
|
|
|
|
|
|
|
cd "swipl-${pkgver/_/-}"
|
2015-12-18 06:02:17 +00:00
|
|
|
./configure --prefix=/usr --with-world
|
|
|
|
|
|
|
|
cd src
|
|
|
|
./configure --enable-readline --prefix=/usr
|
|
|
|
|
|
|
|
make -C ..
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2017-02-27 13:41:01 +00:00
|
|
|
make -C "swipl-${pkgver/_/-}" check || true
|
2015-12-18 06:02:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2017-02-27 13:41:01 +00:00
|
|
|
make -C "swipl-${pkgver/_/-}" DESTDIR="$pkgdir" install
|
2015-12-18 06:02:17 +00:00
|
|
|
|
|
|
|
# Fix for FS#20873
|
2017-02-27 13:41:01 +00:00
|
|
|
chmod +x "$pkgdir/usr/lib/swipl-${pkgver/_/-}/library/dialect/sicstus/swipl-lfr.pl"
|
2015-12-18 06:02:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# getver: swi-prolog.org/download/stable
|
2017-11-06 13:23:42 +00:00
|
|
|
# vim: ts=2 sw=2 et:
|