# -*- shell-script -*- # Maintainer: Alastair Pharo asppsa at gmail dot com # Maintainer: Albert Graef pkgname=pure-pcre-git pkgver=r5928.fc71134b pkgrel=1 pkgdesc="Pure is a modern-style functional programming language based on term rewriting (variant with Perl regex support)." arch=("i686" "x86_64") license=('GPL3' 'LGPL3') url="https://agraef.github.io/pure-lang/" depends=('llvm35-libs' 'gmp' 'mpfr' 'pcre' 'readline') makedepends=('git' 'llvm35') optdepends=("clang35: needed for inlining C/C++ code" "pure-docs-git: online documentation" "w3m: access to help in interactive mode" "emacs-pure-mode: editing Pure files from Emacs" "texmacs-pure: embedding Pure sessions in TeXmacs") provides=('pure' 'pure-git') conflicts=('pure' 'pure-git') replaces=('pure-pcre-hg') source=("git+https://github.com/agraef/pure-lang.git") md5sums=(SKIP) pkgver() { cd $srcdir/pure-lang echo r$(git rev-list --count HEAD).$(git rev-parse --short HEAD) } build() { cd $srcdir/pure-lang/pure autoreconf ./configure --enable-release --prefix=/usr --without-elisp --without-texmacs --with-pcre make || return 1 make check || return 1 } package() { cd "$srcdir/pure-lang/pure" make DESTDIR=$pkgdir install || return 1 # Copy the needed binaries from the LLVM toolchain to make the batch # compiler work without having the llvm35 package installed. cp /usr/bin/llc /usr/bin/llvm-as /usr/bin/opt $pkgdir/usr/lib/pure } # vim:set ts=2 sw=2 et: