From 0ddc4b6544ac7788bf9aebca1635e2d8ad6599f1 Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Mon, 27 Feb 2017 13:41:01 +0000 Subject: [PATCH] community/swi-prolog to 7.4.0_rc2-1 --- community/swi-prolog/PKGBUILD | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/community/swi-prolog/PKGBUILD b/community/swi-prolog/PKGBUILD index 4cf7ff06f..a105114f6 100644 --- a/community/swi-prolog/PKGBUILD +++ b/community/swi-prolog/PKGBUILD @@ -9,8 +9,8 @@ # - build aarch64 with -fPIC pkgname=swi-prolog -pkgver=7.2.3 -pkgrel=4 +pkgver=7.4.0_rc2 +pkgrel=1 pkgdesc='Prolog environment' arch=('x86_64' 'i686') url='http://www.swi-prolog.org/' @@ -22,19 +22,13 @@ optdepends=('unixodbc: for using the odbc4pl library' 'libxpm: for using the pl2xpce library' 'libxinerama: for using the pl2xpce library' 'libxft: for using the pl2xpce library') -source=("http://www.swi-prolog.org/download/stable/src/swipl-$pkgver.tar.gz") -sha256sums=('43657d51b7c5887bc2d2bced50a9822b86a08a6841399b8e76ee877f51d646b5') - -prepare() { - cd "swipl-$pkgver" - if [[ $CARCH == "aarch64" ]]; then - CPPFLAGS+=" -fPIC" - sed -i '/^CFLAGS/ s/$/ -fPIC/' packages/clib/maildrop/rfc822/Makefile.in packages/clib/maildrop/rfc2045/Makefile.in - fi -} +source=("http://www.swi-prolog.org/download/stable/src/swipl-${pkgver/_/-}.tar.gz") +sha256sums=('75e77734a1a948ff36a07f235318dd50759dd4b73097a6bd950c2dad03c92071') build() { - cd "swipl-$pkgver" + [[ $CARCH == "aarch64" ]] && CPPFLAGS+=" -fPIC" + + cd "swipl-${pkgver/_/-}" ./configure --prefix=/usr --with-world cd src @@ -44,14 +38,14 @@ build() { } check() { - make -C "swipl-$pkgver" check || true + make -C "swipl-${pkgver/_/-}" check || true } package() { - make -C "swipl-$pkgver" DESTDIR="$pkgdir" install + make -C "swipl-${pkgver/_/-}" DESTDIR="$pkgdir" install # Fix for FS#20873 - chmod +x "$pkgdir/usr/lib/swipl-$pkgver/library/dialect/sicstus/swipl-lfr.pl" + chmod +x "$pkgdir/usr/lib/swipl-${pkgver/_/-}/library/dialect/sicstus/swipl-lfr.pl" } # getver: swi-prolog.org/download/stable