[arch-commits] Commit in gprolog/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 21:26:51 UTC 2020


    Date: Tuesday, July 7, 2020 @ 21:26:51
  Author: felixonmars
Revision: 660429

archrelease: copy trunk to community-staging-x86_64

Added:
  gprolog/repos/community-staging-x86_64/
  gprolog/repos/community-staging-x86_64/PKGBUILD
    (from rev 660428, gprolog/trunk/PKGBUILD)

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

Copied: gprolog/repos/community-staging-x86_64/PKGBUILD (from rev 660428, gprolog/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 21:26:51 UTC (rev 660429)
@@ -0,0 +1,44 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Geoffroy Carrier <geoffroy.carrier at koon.fr>
+# Contributer: Jason Chu <jchu at xentac.net>
+
+pkgname=gprolog
+pkgver=1.4.5
+pkgrel=2
+pkgdesc="GNU Prolog"
+arch=('x86_64')
+url="http://www.gprolog.org/"
+depends=('glibc')
+license=('GPL')
+options=('staticlibs')
+# "ftp://ftp.gnu.org/gnu/gprolog/gprolog-$pkgver.tar.gz"
+source=("http://www.gprolog.org/gprolog-$pkgver.tar.gz")
+md5sums=('7757de718e47e284544be96994300408')
+
+build() {
+   cd "$srcdir/gprolog-$pkgver/src"
+   CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
+   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --with-c-flags="$CFLAGS -fPIC"
+   make
+}
+
+package() {
+   cd "$srcdir/gprolog-$pkgver/src"
+   make install \
+	INSTALL_DIR="$pkgdir"/usr/share/gprolog \
+	LINKS_DIR="$pkgdir"/usr/bin \
+	DOC_DIR="$pkgdir"/usr/share/gprolog/doc \
+	HTML_DIR="$pkgdir"/usr/share/gprolog/doc/Html \
+	EXAMPLES_DIR="$pkgdir"/usr/share/gprolog \
+	sysconfdir="$pkgdir"/etc \
+	localstatedir="$pkgdir"/var
+   cd "$pkgdir"/usr/bin
+   rm *
+   ln -s /usr/share/gprolog/bin/fd2c
+   ln -s /usr/share/gprolog/bin/gplc
+   ln -s /usr/share/gprolog/bin/gprolog
+   ln -s /usr/share/gprolog/bin/hexgplc
+   ln -s /usr/share/gprolog/bin/ma2asm
+   ln -s /usr/share/gprolog/bin/pl2wam
+   ln -s /usr/share/gprolog/bin/wam2ma
+}


More information about the arch-commits mailing list