# $Id: PKGBUILD 109638 2014-04-17 07:46:16Z fyan $ # Maintainer: Alexander Rødseth # Contributor: Jachym Barvinek # Contributor: Thomas Dziedzic < gostrc at gmail > # Contributor: John Proctor # Contributor: Juergen Hoetzel pkgname=swi-prolog pkgver=6.6.4 pkgrel=1 pkgdesc='Prolog environment' arch=('x86_64' 'i686') url='http://www.swi-prolog.org/' license=('GPL' 'LGPL') depends=('gmp' 'readline' 'openssl' 'libarchive') makedepends=('libxft' 'libjpeg' 'unixodbc' 'libxpm' 'libxinerama') 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') #options=('!makeflags') source=("http://www.swi-prolog.org/download/stable/src/pl-$pkgver.tar.gz") sha256sums=('663977959979e389df0f87c2eb426ab71105c12206605ec40925893b91733cef') build() { cd "pl-$pkgver" ./configure --prefix=/usr --with-world cd src ./configure --enable-readline --prefix=/usr cd .. make } check() { make -C "pl-$pkgver" check || true } package() { make -C "pl-$pkgver" DESTDIR="$pkgdir" install # Fix for FS#20873 chmod +x "$pkgdir/usr/lib/swipl-$pkgver/library/dialect/sicstus/swipl-lfr.pl" } # vim:set ts=2 sw=2 et: