From 998dc034a4bd5da23da02da23a677161fec32262 Mon Sep 17 00:00:00 2001 From: Chewing_Bever Date: Sun, 12 Feb 2023 08:15:03 +0100 Subject: [PATCH] Added PKGBUILD & .SRCINFO --- .SRCINFO | 37 +++++++++++++++++++++++++++++++++++++ PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..9c1224a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,37 @@ +pkgbase = swi-prolog8.4 + pkgdesc = Prolog environment (Legacy 8.4 release) + pkgver = 8.4.3 + pkgrel = 1 + url = https://www.swi-prolog.org/ + arch = x86_64 + license = GPL + license = LGPL + makedepends = cmake + makedepends = jdk-openjdk + makedepends = junit + makedepends = libjpeg + makedepends = libxft + makedepends = libxinerama + makedepends = libxpm + makedepends = ninja + makedepends = python-protobuf + makedepends = unixodbc + depends = gperftools + depends = libarchive + depends = libxcrypt + depends = libyaml + depends = qt5-base + depends = util-linux-libs + optdepends = java-runtime: for using Prolog from Java + optdepends = jdk-openjdk: for using Prolog from Java + optdepends = libjpeg: for using the pl2xpce library + optdepends = libxft: for using the pl2xpce library + optdepends = libxinerama: for using the pl2xpce library + optdepends = libxpm: for using the pl2xpce library + optdepends = unixodbc: for using the odbc4pl library + provides = swi-prolog + conflicts = swi-prolog + source = swi-prolog8.4-8.4.3.tar.gz::https://www.swi-prolog.org/download/stable/src/swipl-8.4.3.tar.gz + b2sums = 7a6f5b7b6447d88fb3c27c999346c73525ed07cd4ad78f841a8399f84e73509c1c06611e271dc91e8ea9b29332b127d0aa8a03e0d3100de6156c21fc4504920e + +pkgname = swi-prolog8.4 diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..fb6da86 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,54 @@ +# Maintainer: Jef Roosens +# Contributor: Alexander F. Rødseth +# Contributor: Jachym Barvinek +# Contributor: Thomas Dziedzic < gostrc at gmail > +# Contributor: John Proctor +# Contributor: Juergen Hoetzel + +pkgname=swi-prolog8.4 +pkgver=8.4.3 +pkgrel=1 +pkgdesc='Prolog environment (Legacy 8.4 release)' +arch=(x86_64) +url='https://www.swi-prolog.org/' +license=(GPL LGPL) +depends=(gperftools libarchive libxcrypt libyaml qt5-base util-linux-libs) +makedepends=(cmake jdk-openjdk junit libjpeg libxft libxinerama libxpm ninja python-protobuf unixodbc) +optdepends=('java-runtime: for using Prolog from Java' + 'jdk-openjdk: for using Prolog from Java' + 'libjpeg: for using the pl2xpce library' + 'libxft: for using the pl2xpce library' + 'libxinerama: for using the pl2xpce library' + 'libxpm: for using the pl2xpce library' + 'unixodbc: for using the odbc4pl library') +source=("$pkgname-$pkgver.tar.gz::https://www.swi-prolog.org/download/stable/src/swipl-$pkgver.tar.gz") +b2sums=('7a6f5b7b6447d88fb3c27c999346c73525ed07cd4ad78f841a8399f84e73509c1c06611e271dc91e8ea9b29332b127d0aa8a03e0d3100de6156c21fc4504920e') + +conflicts=(swi-prolog) +provides=(swi-prolog) + +build() { + cmake \ + -B build \ + -D CMAKE_BUILD_TYPE=Release \ + -D CMAKE_INSTALL_PREFIX=/usr \ + -D CMAKE_C_FLAGS="$CFLAGS -fPIC -ffile-prefix-map=$PWD= -w" \ + -D LIBEDIT_LIBRARIES=/usr/lib/libedit.so.0 \ + -D LIBEDIT_INCLUDE_DIR=/usr/include \ + -G Ninja \ + -S swipl-$pkgver + swipl-$pkgver/scripts/pgo-compile.sh + ninja -C build +} + +check() { + # skip the MQI test + #sed -i '/mqi/d' build/CTestTestfile.cmake + ctest --test-dir build +} + +package() { + DESTDIR="$pkgdir" ninja -C build install +} + +# getver: www.swi-prolog.org/download/stable