2014-01-03 16:46:09 +00:00
|
|
|
# $Id$
|
2011-02-07 07:12:08 +00:00
|
|
|
# Maintainer: Vesa Kaihlavirta <vegai@iki.fi>
|
|
|
|
# Contributor: Michael Baehr <usemike@spamblocked.com>
|
|
|
|
|
2012-07-29 19:23:38 +00:00
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2011-02-07 07:12:08 +00:00
|
|
|
# - using source from Ubuntu Natty, 1.10+cvs20100619-2build1
|
2014-01-03 16:46:09 +00:00
|
|
|
# - use pic with v6 and v7
|
2011-02-07 07:12:08 +00:00
|
|
|
|
|
|
|
pkgname=ffcall
|
|
|
|
pkgver=1.10
|
2014-01-03 19:30:00 +00:00
|
|
|
pkgrel=6
|
2011-02-07 07:12:08 +00:00
|
|
|
pkgdesc="C library for implementing foreign function calls in embedded interpreters"
|
|
|
|
arch=('i686' 'x86_64')
|
2014-01-03 16:46:09 +00:00
|
|
|
url="http://www.gnu.org/software/libffcall/"
|
2011-02-07 07:12:08 +00:00
|
|
|
license=('GPL2')
|
2014-01-03 17:39:45 +00:00
|
|
|
options=('!makeflags' 'staticlibs')
|
2014-01-03 16:46:09 +00:00
|
|
|
source=(http://archlinuxarm.org/builder/src/${pkgname}-${pkgver}.tar.gz)
|
2011-02-07 07:12:08 +00:00
|
|
|
md5sums=('700e91d12c2fddf3aa4090436ce28370')
|
|
|
|
|
|
|
|
build() {
|
2014-01-03 16:46:09 +00:00
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
[ "$CARCH" = "x86_64" ] && CONFIGFLAG="--with-pic"
|
|
|
|
[ "$CARCH" = "armv6h" -o "$CARCH" = "armv7h" ] && 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
|
2011-02-07 07:12:08 +00:00
|
|
|
}
|