mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
extra/ffcall fixes
This commit is contained in:
parent
694f477184
commit
cfb475d0a7
1 changed files with 20 additions and 14 deletions
|
@ -1,31 +1,37 @@
|
|||
# $Id: PKGBUILD 2176 2008-05-28 20:52:39Z eric $
|
||||
# $Id$
|
||||
# Maintainer: Vesa Kaihlavirta <vegai@iki.fi>
|
||||
# Contributor: Michael Baehr <usemike@spamblocked.com>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - using source from Ubuntu Natty, 1.10+cvs20100619-2build1
|
||||
# - this has the upstream updates to allow <ARMv6 to compile
|
||||
# - when ffcall gets updated in abs, try new version, delete this if it works
|
||||
# - use pic with v6 and v7
|
||||
|
||||
pkgname=ffcall
|
||||
pkgver=1.10
|
||||
pkgrel=5
|
||||
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=('!makeflags')
|
||||
source=(http://archlinuxarm.org/builder/src//${pkgname}-${pkgver}.tar.gz)
|
||||
source=(http://archlinuxarm.org/builder/src/${pkgname}-${pkgver}.tar.gz)
|
||||
md5sums=('700e91d12c2fddf3aa4090436ce28370')
|
||||
|
||||
build() {
|
||||
cd ${startdir}/src/${pkgname}-${pkgver}
|
||||
if [ "$CARCH" = "armv6h" -o "$CARCH" = "armv7h" ]; 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"
|
||||
[ "$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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue