lib32/libtool-multilib/PKGBUILD

73 lines
1.6 KiB
Bash
Raw Normal View History

2013-04-28 02:56:41 +08:00
# maintainer: Manuel Tortosa
2011-01-15 19:01:13 +08:00
# NOTE: requires rebuilt with each new gcc version
pkgbase=libtool-multilib
_pkgbase=libtool
2012-04-22 05:37:11 +08:00
pkgname=(libtool-multilib lib32-libltdl)
pkgver=2.4.2
2014-09-16 18:24:22 +08:00
_gccver=4.9.1
pkgrel=8
2011-01-15 19:01:13 +08:00
pkgdesc="A generic library support script for multilib"
arch=('x86_64')
url="http://www.gnu.org/software/libtool"
license=('GPL')
2014-09-16 18:24:22 +08:00
makedepends=("gcc-multilib=${_gccver}")
source=(ftp://ftp.gnu.org/pub/gnu/libtool/libtool-${pkgver}.tar.xz{,.sig})
md5sums=('2ec8997e0c07249eb4cbd072417d70fe'
'1e6ba57420c82c663c85e745d11c7eed')
2011-01-15 19:01:13 +08:00
2014-09-16 18:24:22 +08:00
prepare() {
2011-01-15 19:01:13 +08:00
mv libtool-$pkgver libtool-64
cp -a libtool-64 libtool-32
2014-09-16 18:24:22 +08:00
}
build() {
( msg2 "Building libtool-64..."
cd libtool-64
./configure --prefix=/usr
make
)
( msg2 "Building libtool-32..."
export CC="gcc -m32"
export CXX="g++ -m32"
2011-01-15 19:01:13 +08:00
2014-09-16 18:24:22 +08:00
cd libtool-32
./configure --prefix=/usr --libdir=/usr/lib32
make
)
}
2011-01-15 19:01:13 +08:00
2014-09-16 18:24:22 +08:00
check() {
cd libtool-64
make -k check
cd ../libtool-32
make -k check
2011-01-15 19:01:13 +08:00
}
package_libtool-multilib() {
2014-09-16 18:24:22 +08:00
depends=('sh' "libltdl=$pkgver" 'tar' "gcc-multilib=${_gccver}" "lib32-libltdl=$pkgver")
2012-04-22 05:37:11 +08:00
groups=('multilib-devel')
install=libtool.install
2011-01-15 19:01:13 +08:00
provides=("libtool=$pkgver-$pkgrel")
conflicts=(libtool)
2014-09-16 18:24:22 +08:00
cd libtool-64
2012-04-22 05:37:11 +08:00
make DESTDIR=${pkgdir} install-binSCRIPTS install-man install-info \
install-data-local
2014-09-16 18:24:22 +08:00
rm -r ${pkgdir}/usr/share/libtool/libltdl/
2011-01-15 19:01:13 +08:00
}
2012-04-22 05:37:11 +08:00
package_lib32-libltdl() {
pkgdesc="A system independent dlopen wrapper for GNU libtool (32-bit)"
depends=(lib32-glibc libltdl)
replaces=(lib32-libtool)
provides=("lib32-libtool=$pkgver-$pkgrel")
conflicts=(lib32-libtool)
2011-01-15 19:01:13 +08:00
2014-09-16 18:24:22 +08:00
cd libtool-32
make DESTDIR=${pkgdir} install-libLTLIBRARIES
2011-01-15 19:01:13 +08:00
}