mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
60 lines
1.6 KiB
Bash
60 lines
1.6 KiB
Bash
# $Id: PKGBUILD 151926 2012-03-04 10:58:08Z allan $
|
|
# Maintainer: Allan McRae <allan@archlinux.org>
|
|
# Contributor: judd <jvinet@zeroflux.org>
|
|
|
|
# NOTE: requires rebuilt with each new gcc version
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - noautobuild, !distcc
|
|
|
|
noautobuild=1
|
|
|
|
pkgname=('libtool' 'libltdl')
|
|
pkgver=2.4.2
|
|
_gccver=4.9.0
|
|
pkgrel=13
|
|
pkgdesc="A generic library support script"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.gnu.org/software/libtool"
|
|
makedepends=("gcc=${_gccver}")
|
|
license=('GPL')
|
|
options=('!distcc')
|
|
source=(ftp://ftp.gnu.org/pub/gnu/libtool/${pkgname}-${pkgver}.tar.xz{,.sig}
|
|
armv7h-nopic.patch)
|
|
md5sums=('2ec8997e0c07249eb4cbd072417d70fe'
|
|
'1e6ba57420c82c663c85e745d11c7eed'
|
|
'7ba2180372dc52d4bfb31a9bafead630')
|
|
|
|
build() {
|
|
[[ $CARCH == "armv7h" ]] && patch -p0 -i ${srcdir}/armv7h-nopic.patch
|
|
cd ${srcdir}/${pkgbase}-${pkgver}
|
|
./configure --prefix=/usr
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd ${srcdir}/${pkgbase}-${pkgver}
|
|
make check
|
|
}
|
|
|
|
package_libtool() {
|
|
depends=('sh' "libltdl=$pkgver" 'tar' "gcc=${_gccver}")
|
|
groups=('base-devel')
|
|
install=libtool.install
|
|
|
|
cd ${srcdir}/${pkgbase}-${pkgver}
|
|
|
|
make DESTDIR=${pkgdir} install-binSCRIPTS install-man install-info \
|
|
install-data-local
|
|
rm -r ${pkgdir}/usr/share/libtool/libltdl/
|
|
}
|
|
|
|
package_libltdl() {
|
|
pkgdesc="A system independent dlopen wrapper for GNU libtool"
|
|
|
|
cd ${srcdir}/${pkgbase}-${pkgver}
|
|
make DESTDIR=${pkgdir} install-libLTLIBRARIES install-includeHEADERS \
|
|
install-ltdlincludeHEADERS install-data-local
|
|
rm -r ${pkgdir}/usr/share/{aclocal,libtool/config}
|
|
}
|
|
|