summaryrefslogtreecommitdiff
path: root/extra/ffcall/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-06-24 23:06:35 +0000
committerroot <root@rshg047.dnsready.net>2011-06-24 23:06:35 +0000
commit71f58605e914de11f3a9b7cc2f27b0c52fb8d4ba (patch)
tree948002f901215fa91b99058ec3bfc4a51475018d /extra/ffcall/PKGBUILD
parent7347bb994a41d021c83e97b503f577f2399302e7 (diff)
Fri Jun 24 23:06:35 UTC 2011
Diffstat (limited to 'extra/ffcall/PKGBUILD')
-rw-r--r--extra/ffcall/PKGBUILD30
1 files changed, 18 insertions, 12 deletions
diff --git a/extra/ffcall/PKGBUILD b/extra/ffcall/PKGBUILD
index fcf0a0f66..5d21a3d7b 100644
--- a/extra/ffcall/PKGBUILD
+++ b/extra/ffcall/PKGBUILD
@@ -1,26 +1,32 @@
-# $Id: PKGBUILD 2176 2008-05-28 20:52:39Z eric $
+# $Id: PKGBUILD 128452 2011-06-24 01:23:15Z eric $
# Maintainer: Vesa Kaihlavirta <vegai@iki.fi>
# Contributor: Michael Baehr <usemike@spamblocked.com>
pkgname=ffcall
pkgver=1.10
-pkgrel=3
+pkgrel=4
pkgdesc="C library for implementing foreign function calls in embedded interpreters"
arch=('i686' 'x86_64')
-url="http://www.haible.de/bruno/packages-ffcall.html"
+url="http://www.gnu.org/software/libffcall/"
license=('GPL2')
options=('!libtool' '!makeflags')
source=(http://www.haible.de/bruno/gnu/${pkgname}-${pkgver}.tar.gz)
md5sums=('2db95007e901f3bc2ae7e5a9fe9ebea4')
build() {
- cd ${startdir}/src/${pkgname}-${pkgver}
- if [ "$CARCH" = "x86_64" ]; then
- ./configure --prefix=/usr --mandir=/usr/share/man --with-pic || return 1
- else
- ./configure --prefix=/usr --mandir=/usr/share/man || return 1
- fi
- make || return 1
- install -d ${startdir}/pkg/usr/share/man || return 1
- make DESTDIR=${startdir}/pkg/ install || return 1
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ [ "$CARCH" = "x86_64" ] && CONFIGFLAG="--with-pic"
+ ./configure --prefix=/usr --mandir=/usr/share/man $CONFIGFLAG
+ make
+}
+
+check() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make check
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ install -d "${pkgdir}"/usr/share/{man,doc/ffcall}
+ make DESTDIR="${pkgdir}" htmldir=/usr/share/doc/ffcall install
}