mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-17 23:34:07 +00:00
community/swi-prolog to 7.4.0_rc2-1
This commit is contained in:
parent
bd884be1c6
commit
0ddc4b6544
1 changed files with 10 additions and 16 deletions
|
@ -9,8 +9,8 @@
|
||||||
# - build aarch64 with -fPIC
|
# - build aarch64 with -fPIC
|
||||||
|
|
||||||
pkgname=swi-prolog
|
pkgname=swi-prolog
|
||||||
pkgver=7.2.3
|
pkgver=7.4.0_rc2
|
||||||
pkgrel=4
|
pkgrel=1
|
||||||
pkgdesc='Prolog environment'
|
pkgdesc='Prolog environment'
|
||||||
arch=('x86_64' 'i686')
|
arch=('x86_64' 'i686')
|
||||||
url='http://www.swi-prolog.org/'
|
url='http://www.swi-prolog.org/'
|
||||||
|
@ -22,19 +22,13 @@ optdepends=('unixodbc: for using the odbc4pl library'
|
||||||
'libxpm: for using the pl2xpce library'
|
'libxpm: for using the pl2xpce library'
|
||||||
'libxinerama: for using the pl2xpce library'
|
'libxinerama: for using the pl2xpce library'
|
||||||
'libxft: for using the pl2xpce library')
|
'libxft: for using the pl2xpce library')
|
||||||
source=("http://www.swi-prolog.org/download/stable/src/swipl-$pkgver.tar.gz")
|
source=("http://www.swi-prolog.org/download/stable/src/swipl-${pkgver/_/-}.tar.gz")
|
||||||
sha256sums=('43657d51b7c5887bc2d2bced50a9822b86a08a6841399b8e76ee877f51d646b5')
|
sha256sums=('75e77734a1a948ff36a07f235318dd50759dd4b73097a6bd950c2dad03c92071')
|
||||||
|
|
||||||
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
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd "swipl-$pkgver"
|
[[ $CARCH == "aarch64" ]] && CPPFLAGS+=" -fPIC"
|
||||||
|
|
||||||
|
cd "swipl-${pkgver/_/-}"
|
||||||
./configure --prefix=/usr --with-world
|
./configure --prefix=/usr --with-world
|
||||||
|
|
||||||
cd src
|
cd src
|
||||||
|
@ -44,14 +38,14 @@ build() {
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
make -C "swipl-$pkgver" check || true
|
make -C "swipl-${pkgver/_/-}" check || true
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
make -C "swipl-$pkgver" DESTDIR="$pkgdir" install
|
make -C "swipl-${pkgver/_/-}" DESTDIR="$pkgdir" install
|
||||||
|
|
||||||
# Fix for FS#20873
|
# 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
|
# getver: swi-prolog.org/download/stable
|
||||||
|
|
Loading…
Reference in a new issue