summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 95e098180d2b0375a8cdd32d29fd1ba967361908 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Maintainer: Alastair Pharo <asppsa at gmail dot com>

pkgname=pure-ffi
pkgver=0.16
pkgrel=1
pkgdesc="An interface to libffi which enables you to call C functions from Pure and vice versa."
arch=("i686" "x86_64")
license=('LGPL3')
url="http://purelang.bitbucket.org/"
depends=('pure' 'libffi')
makedepends=()
groups=(pure-complete pure-util)
source=("https://github.com/agraef/pure-lang/releases/download/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz")
sha1sums=('71afaa663aacaa4a1b25281a5b4612c82b4972e8')

build() {
  cd $srcdir/$pkgname-$pkgver
  export C_INCLUDE_PATH=`pacman -Ql libffi | awk '/.*\/include\/.*/ {print $2}' | head -1` && make || return 1
}

package() {
  cd $srcdir/$pkgname-$pkgver
  make DESTDIR=$pkgdir install || return 1
}