Date: Saturday, December 10, 2022 @ 20:30:46
  Author: freswa
Revision: 1358219

archrelease: copy trunk to community-staging-x86_64

Added:
  swi-prolog/repos/community-staging-x86_64/
  swi-prolog/repos/community-staging-x86_64/PKGBUILD
    (from rev 1358218, swi-prolog/trunk/PKGBUILD)

----------+
 PKGBUILD |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

Copied: swi-prolog/repos/community-staging-x86_64/PKGBUILD (from rev 1358218, 
swi-prolog/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2022-12-10 20:30:46 UTC (rev 1358219)
@@ -0,0 +1,48 @@
+# Maintainer: Alexander F. Rødseth <[email protected]>
+# Contributor: Jachym Barvinek <[email protected]>
+# Contributor: Thomas Dziedzic < gostrc at gmail >
+# Contributor: John Proctor <[email protected]>
+# Contributor: Juergen Hoetzel <[email protected]>
+
+pkgname=swi-prolog
+pkgver=9.0.0
+pkgrel=2
+pkgdesc='Prolog environment'
+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=('927f7aae1b4f1be64a3ed1f12b4fdc959d272f14c9036665e79f61d430caaec1265215e20459737b8d07c5ab67d6953c0389a3e4bcf38a554b9b2580334c0db4')
+
+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() {
+  ctest --test-dir build
+}
+
+package() {
+  DESTDIR="$pkgdir" ninja -C build install
+}
+
+# getver: www.swi-prolog.org/download/stable

Reply via email to