[arch-commits] Commit in libffi/trunk (PKGBUILD libffi.install)
Eric Bélanger
eric at archlinux.org
Fri Feb 27 03:34:40 UTC 2009
Date: Thursday, February 26, 2009 @ 22:34:40
Author: eric
Revision: 27853
upgpkg: libffi 3.0.8-1
Switched to currently maintained libffi distribution (close FS#12854), Updated license, Added install scriptlet to handle info pages
Added:
libffi/trunk/libffi.install
Modified:
libffi/trunk/PKGBUILD
----------------+
PKGBUILD | 31 +++++++++++++------------------
libffi.install | 18 ++++++++++++++++++
2 files changed, 31 insertions(+), 18 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2009-02-27 02:01:15 UTC (rev 27852)
+++ PKGBUILD 2009-02-27 03:34:40 UTC (rev 27853)
@@ -2,29 +2,24 @@
# Maintainer: Jan de Groot <jgc at archlinux.org>
pkgname=libffi
-pkgver=4.3.3
+pkgver=3.0.8
pkgrel=1
pkgdesc="A portable, high level programming interface to various calling conventions."
arch=('i686' 'x86_64')
-license=('custom')
+license=('MIT')
url="http://sourceware.org/libffi"
-depends=('glibc')
-options=('!libtool')
-source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-{core,java}-${pkgver}.tar.bz2)
-md5sums=('1739288c2c7b1472796b33d641dbdbbd'
- '068938366ee0be5b70112bdf485898b4')
+depends=('glibc' 'texinfo')
+options=('!libtool' 'force')
+install=libffi.install
+source=(ftp://sourceware.org/pub/libffi/libffi-${pkgver}.tar.gz)
+md5sums=('188a4f79fdac2310044b44b7d3918ef9')
build() {
- cd ${startdir}/src
- mkdir gcc-build
- cd gcc-build
- ../gcc-${pkgver}/libffi/configure --prefix=/usr \
- --enable-shared --libdir=/usr/lib --disable-multilib
+ cd ${srcdir}/${pkgname}-${pkgver}
+ ./configure --prefix=/usr || return 1
make || return 1
- make DESTDIR=${startdir}/pkg install
- mv ${startdir}/pkg/usr/lib/gcc/${pkgver}/include ${startdir}/pkg/usr/include
- rm -rf ${startdir}/pkg/usr/lib/gcc
- mkdir -p ${startdir}/pkg/usr/share/licenses/${pkgname}
- install -m644 ${startdir}/src/gcc-${pkgver}/${pkgname}/LICENSE \
- ${startdir}/pkg/usr/share/licenses/${pkgname}/
+ make DESTDIR=${pkgdir} install || return 1
+ install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+ rm -f ${pkgdir}/usr/share/info/dir
+ gzip ${pkgdir}/usr/share/info/*
}
Added: libffi.install
===================================================================
--- libffi.install (rev 0)
+++ libffi.install 2009-02-27 03:34:40 UTC (rev 27853)
@@ -0,0 +1,18 @@
+infodir=/usr/share/info
+filelist=(libffi.info.gz)
+
+post_install() {
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
More information about the arch-commits
mailing list