diff options
author | Nikolaos Bezirgiannis | 2015-07-06 20:25:11 +0200 |
---|---|---|
committer | Nikolaos Bezirgiannis | 2015-07-06 20:25:11 +0200 |
commit | 582fb6a99a1cfe524f445f4e8d11e5a00557eaef (patch) | |
tree | 9d7877614bf520873fc013e62f3dc41487641c39 | |
download | aur-582fb6a99a1cfe524f445f4e8d11e5a00557eaef.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 30 | ||||
-rw-r--r-- | PKGBUILD | 59 |
2 files changed, 89 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1090a3572e82 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,30 @@ +pkgbase = swi-prolog-git + pkgdesc = Prolog environment (latest git stable version) + pkgver = 7.2.0.r1.ga0999a2 + pkgrel = 1 + url = http://www.swi-prolog.org/ + arch = x86_64 + arch = i686 + license = GPL + license = LGPL + makedepends = libxft + makedepends = libjpeg + makedepends = unixodbc + makedepends = libxpm + makedepends = libxinerama + depends = gmp + depends = readline + depends = openssl + depends = libarchive + optdepends = unixodbc: for using the odbc4pl library + optdepends = libjpeg: for using the pl2xpce library + optdepends = libxpm: for using the pl2xpce library + optdepends = libxinerama: for using the pl2xpce library + optdepends = libxft: for using the pl2xpce library + provides = swi-prolog + conflicts = swi-prolog + source = git://github.com/SWI-Prolog/swipl + sha256sums = SKIP + +pkgname = swi-prolog-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8fb26d4c979c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,59 @@ +# Maintainer: Nikolaos Bezirgiannis <bezeria@gmail.com> +# Contributor: Alexander Rødseth <rodseth@gmail.com> +# Contributor: Jachym Barvinek <jachymb@gmail.com> +# Contributor: Thomas Dziedzic < gostrc at gmail > +# Contributor: John Proctor <jproctor@prium.net> +# Contributor: Juergen Hoetzel <juergen@archlinux.org> + +pkgname=swi-prolog-git +pkgver=7.2.0.r1.ga0999a2 +pkgrel=1 +pkgdesc='Prolog environment (latest git stable version)' +arch=('x86_64' 'i686') +url='http://www.swi-prolog.org/' +license=('GPL' 'LGPL') +depends=('gmp' 'readline' 'openssl' 'libarchive') +makedepends=('libxft' 'libjpeg' 'unixodbc' 'libxpm' 'libxinerama') +optdepends=('unixodbc: for using the odbc4pl library' + 'libjpeg: for using the pl2xpce library' + 'libxpm: for using the pl2xpce library' + 'libxinerama: for using the pl2xpce library' + 'libxft: for using the pl2xpce library') +#options=('!makeflags') +source=("git://github.com/SWI-Prolog/swipl") +sha256sums=('SKIP') +conflicts=('swi-prolog') +provides=('swi-prolog') + +pkgver() { + cd "$srcdir/swipl" + git describe --long | sed -r 's/^V//;s/([^-]*-g)/r\1/;s/-/./g' +} + +prepare() { + cd "$srcdir/swipl" + # fix submodules url + sed -i -e 's,\.\.,git://github.com/SWI-Prolog,g' .gitmodules + git submodule update --init +} + +build() { + cd "${srcdir}/swipl" + + echo 2 | ./configure --prefix=/usr --with-world + cd src + ./configure --enable-readline --prefix=/usr + cd .. + make +} + +package() { + cd "${srcdir}/swipl" + make DESTDIR="$pkgdir" install + + _tag=$(git describe --abbrev=0 --tags | sed -r 's/^V//g') + + # Fix for FS#20873 + chmod +x "$pkgdir/usr/lib/swipl-${_tag}/library/dialect/sicstus/swipl-lfr.pl" +} + |