From 1b114dc25b9ffec3667bcf55f9aff64597925e60 Mon Sep 17 00:00:00 2001 From: Giuseppe Date: Sat, 15 Jan 2011 11:01:13 +0000 Subject: [PATCH] added libtool-multilib --- libtool-multilib/PKGBUILD | 65 ++++++++++++++++++++++++++++++++ libtool-multilib/libtool.install | 22 +++++++++++ 2 files changed, 87 insertions(+) create mode 100644 libtool-multilib/PKGBUILD create mode 100644 libtool-multilib/libtool.install diff --git a/libtool-multilib/PKGBUILD b/libtool-multilib/PKGBUILD new file mode 100644 index 0000000..aaa7892 --- /dev/null +++ b/libtool-multilib/PKGBUILD @@ -0,0 +1,65 @@ +# Lib32 Packages for Chakra, part of chakra-project.org +# +# maintainer (x86_64): Giuseppe CalĂ  +# maintainer (x86_64): Anke Boersma + +# NOTE: requires rebuilt with each new gcc version + +pkgbase=libtool-multilib +_pkgbase=libtool +pkgname=(libtool-multilib lib32-libtool) +pkgver=2.2.6b +pkgrel=1 +pkgdesc="A generic library support script for multilib" +arch=('x86_64') +url="http://www.gnu.org/software/libtool" +license=('GPL') +makedepends=(sh tar texinfo gcc-multilib) +options=('!libtool') +source=(ftp://ftp.gnu.org/pub/gnu/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz) +md5sums=('07da460450490148c6d2df0f21481a25') + +build() { + cd "$srcdir" + + rm -rf libtool-64 libtool-32 + mv libtool-$pkgver libtool-64 + cp -a libtool-64 libtool-32 + +msg2 "Building libtool-64..." + + cd "$srcdir/libtool-64" + ./configure --prefix=/usr + make + make check + +msg2 "Building libtool-32..." + + export CC="gcc -m32" + export CXX="g++ -m32" + + cd "$srcdir/libtool-32" + ./configure --prefix=/usr --libdir=/usr/lib32 + make + make check +} + +package_libtool-multilib() { + groups=('multilib-devel') + depends=(sh tar texinfo "lib32-libtool=$pkgver-$pkgrel") + provides=("libtool=$pkgver-$pkgrel") + conflicts=(libtool) + install=libtool.install + + cd "$srcdir/libtool-64" + make DESTDIR="$pkgdir" install +} + +package_lib32-libtool() { + pkgdesc="A generic library support script (32-bit)" + depends=(lib32-glibc) + + cd "$srcdir/libtool-32" + make DESTDIR="$pkgdir" install + rm -r "$pkgdir"/usr/{bin,include,share} +} diff --git a/libtool-multilib/libtool.install b/libtool-multilib/libtool.install new file mode 100644 index 0000000..424c8cb --- /dev/null +++ b/libtool-multilib/libtool.install @@ -0,0 +1,22 @@ +infodir=/usr/share/info +filelist=(libtool.info libtool.info-1 libtool.info-2) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file.gz $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null + done +} + +# vim:set ts=2 sw=2 et: