summaryrefslogtreecommitdiff
path: root/multilib/libtool-multilib
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /multilib/libtool-multilib
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'multilib/libtool-multilib')
-rw-r--r--multilib/libtool-multilib/PKGBUILD64
-rw-r--r--multilib/libtool-multilib/libtool.install22
2 files changed, 86 insertions, 0 deletions
diff --git a/multilib/libtool-multilib/PKGBUILD b/multilib/libtool-multilib/PKGBUILD
new file mode 100644
index 000000000..87fcc28b0
--- /dev/null
+++ b/multilib/libtool-multilib/PKGBUILD
@@ -0,0 +1,64 @@
+# $Id: PKGBUILD 35242 2010-12-17 21:48:01Z heftig $
+# Maintainer: Jan "heftig" Steffens <jan.steffens@gmail.com>
+# Contributor: Allan McRae <allan@archlinux.org>
+# Contributor: judd <jvinet@zeroflux.org>
+
+# NOTE: requires rebuilt with each new gcc version
+
+pkgbase=libtool-multilib
+pkgname=(libtool-multilib lib32-libtool)
+pkgver=2.4
+pkgrel=2
+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/libtool/libtool-${pkgver}.tar.xz)
+md5sums=('4e6144439d95d7332dc50ace6dd24c55')
+
+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/multilib/libtool-multilib/libtool.install b/multilib/libtool-multilib/libtool.install
new file mode 100644
index 000000000..424c8cb88
--- /dev/null
+++ b/multilib/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: