[arch-commits] Commit in libtool-multilib/repos (3 files)
Jan Steffens
heftig at archlinux.org
Thu Dec 4 13:28:38 UTC 2014
Date: Thursday, December 4, 2014 @ 14:28:38
Author: heftig
Revision: 123445
archrelease: copy trunk to multilib-testing-x86_64
Added:
libtool-multilib/repos/multilib-testing-x86_64/
libtool-multilib/repos/multilib-testing-x86_64/PKGBUILD
(from rev 123444, libtool-multilib/trunk/PKGBUILD)
libtool-multilib/repos/multilib-testing-x86_64/libtool.install
(from rev 123444, libtool-multilib/trunk/libtool.install)
-----------------+
PKGBUILD | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
libtool.install | 22 ++++++++++++++++
2 files changed, 95 insertions(+)
Copied: libtool-multilib/repos/multilib-testing-x86_64/PKGBUILD (from rev 123444, libtool-multilib/trunk/PKGBUILD)
===================================================================
--- multilib-testing-x86_64/PKGBUILD (rev 0)
+++ multilib-testing-x86_64/PKGBUILD 2014-12-04 13:28:38 UTC (rev 123445)
@@ -0,0 +1,73 @@
+# $Id$
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Contributor: Allan McRae <allan at archlinux.org>
+# Contributor: judd <jvinet at zeroflux.org>
+
+# NOTE: requires rebuild with each new gcc version
+
+pkgbase=libtool-multilib
+pkgname=(libtool-multilib lib32-libltdl)
+pkgver=2.4.4
+_gccver=4.9.2
+pkgrel=1
+pkgdesc="A generic library support script for multilib"
+arch=('x86_64')
+url="http://www.gnu.org/software/libtool"
+license=('GPL')
+groups=('multilib-devel')
+depends=('sh' 'tar' "gcc-multilib=${_gccver}")
+makedepends=("gcc-multilib=${_gccver}")
+provides=("libltdl=$pkgver"" libtool=$pkgver-$pkgrel")
+conflicts=(libltdl libtool)
+source=(ftp://ftp.gnu.org/pub/gnu/libtool/libtool-${pkgver}.tar.xz{,.sig})
+md5sums=('51bf400de3354687d68dfa2392506b7e'
+ 'SKIP')
+validpgpkeys=('CFE2BE707B538E8B26757D84151308092983D606')
+
+prepare() {
+ mv libtool-$pkgver libtool-64
+ cp -a libtool-64 libtool-32
+}
+
+build() {
+ ( msg2 "Building libtool-64..."
+ cd libtool-64
+ ./configure --prefix=/usr
+ make
+ )
+
+ ( msg2 "Building libtool-32..."
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+
+ cd libtool-32
+ ./configure --prefix=/usr --libdir=/usr/lib32
+ make
+ )
+}
+
+check() {
+ cd libtool-64
+ make -k check
+ cd ../libtool-32
+ make -k check
+}
+
+package_libtool-multilib() {
+ depends+=("lib32-libltdl=$pkgver-$pkgrel")
+ install=libtool.install
+
+ cd libtool-64
+ make DESTDIR=${pkgdir} install
+}
+
+package_lib32-libltdl() {
+ pkgdesc="A system independent dlopen wrapper for GNU libtool (32-bit)"
+ depends=(lib32-glibc)
+ provides=("lib32-libtool=$pkgver-$pkgrel")
+ conflicts=(lib32-libtool)
+ replaces=(lib32-libtool)
+
+ cd libtool-32
+ make DESTDIR=${pkgdir} install-libLTLIBRARIES
+}
Copied: libtool-multilib/repos/multilib-testing-x86_64/libtool.install (from rev 123444, libtool-multilib/trunk/libtool.install)
===================================================================
--- multilib-testing-x86_64/libtool.install (rev 0)
+++ multilib-testing-x86_64/libtool.install 2014-12-04 13:28:38 UTC (rev 123445)
@@ -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:
More information about the arch-commits
mailing list