Date: Thursday, August 25, 2011 @ 02:35:29 Author: eric Revision: 136231
upgpkg: libffi 3.0.10-1 Upstream update, Remove texinfo depends, Remove obsolete force option, Clean up PKGBUILD Modified: libffi/trunk/PKGBUILD libffi/trunk/libffi.install ----------------+ PKGBUILD | 25 ++++++++++++++----------- libffi.install | 4 +++- 2 files changed, 17 insertions(+), 12 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2011-08-25 03:21:05 UTC (rev 136230) +++ PKGBUILD 2011-08-25 06:35:29 UTC (rev 136231) @@ -2,23 +2,26 @@ # Maintainer: Jan de Groot <j...@archlinux.org> pkgname=libffi -pkgver=3.0.9 +pkgver=3.0.10 pkgrel=1 -pkgdesc="A portable, high level programming interface to various calling conventions." +pkgdesc="A portable, high level programming interface to various calling conventions" arch=('i686' 'x86_64') +url="http://sourceware.org/libffi" license=('MIT') -url="http://sourceware.org/libffi" -depends=('glibc' 'texinfo') -options=('!libtool' 'force') +depends=('glibc') +options=('!libtool') install=libffi.install source=(ftp://sourceware.org/pub/libffi/libffi-${pkgver}.tar.gz) -md5sums=('1f300a7a7f975d4046f51c3022fa5ff1') +md5sums=('79390673f5d07a8fb342bc09b5055b6f') build() { cd "${srcdir}/${pkgname}-${pkgver}" - ./configure --prefix=/usr || return 1 - make || return 1 - make DESTDIR="${pkgdir}" install || return 1 - install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" - install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/" || return 1 + ./configure --prefix=/usr + make } + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" install + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} Modified: libffi.install =================================================================== --- libffi.install 2011-08-25 03:21:05 UTC (rev 136230) +++ libffi.install 2011-08-25 06:35:29 UTC (rev 136231) @@ -1,7 +1,8 @@ -infodir=/usr/share/info +infodir=usr/share/info filelist=(libffi.info.gz) post_install() { + [[ -x usr/bin/install-info ]] || return 0 for file in ${filelist[@]}; do install-info $infodir/$file $infodir/dir 2> /dev/null done @@ -12,6 +13,7 @@ } pre_remove() { + [[ -x usr/bin/install-info ]] || return 0 for file in ${filelist[@]}; do install-info --delete $infodir/$file $infodir/dir 2> /dev/null done