jobcore/libtool/PKGBUILD-arch

71 lines
2.1 KiB
Text
Raw Normal View History

2022-03-20 13:19:37 +01:00
# Maintainer: Giancarlo Razzolini <grazzolini@archlinux.org>
# Maintainer: Frederik Schwan <freswa at archlinux dot org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>
# NOTE: requires rebuilt with each new gcc version
pkgname=libtool
2024-08-30 01:12:48 +02:00
pkgver=2.5.2+r1+g2fe3a3e2
_commit=2fe3a3e2a954adcbfb1139d780bec47b85ef6077
pkgrel=1
2024-08-06 18:50:37 +02:00
_gccver=14.2.1
2022-03-20 13:19:37 +01:00
pkgdesc='A generic library support script'
arch=(x86_64)
url='https://www.gnu.org/software/libtool'
2024-05-14 20:04:55 +02:00
license=('LGPL-2.0-or-later WITH Libtool-exception')
2022-03-20 13:19:37 +01:00
depends=(sh tar glibc)
makedepends=("gcc>=$_gccver" git help2man)
checkdepends=(gcc-fortran)
provides=("libltdl=$pkgver" "libtool-multilib=$pkgver")
conflicts=(libltdl libtool-multilib)
replaces=(libltdl libtool-multilib)
source=(
git+https://git.savannah.gnu.org/git/libtool.git#commit=$_commit
git+https://git.savannah.gnu.org/git/gnulib.git
gnulib-bootstrap::git+https://github.com/gnulib-modules/bootstrap.git
disable-lto-link-order2.patch
)
2024-08-30 01:12:48 +02:00
b2sums=('191bd0dde07c5dc39c7e1cc8ea7169f2a37ad89ac83b549c5ef5437395e9121052c0a32ac43b6876bd4c978e742a326d6c33e8d930674ec109caa7fe5335cc1d'
'SKIP'
'SKIP'
'9d1e0460b9ef56ba33ac498814b409d1b1d7c3e8ed41a3aed2a86d86341ed7051ca88a5adfa92bd87da968460514230058c3d490b58537d95722e68d7d1687ff')
2022-03-20 13:19:37 +01:00
pkgver() {
cd libtool
2024-08-30 01:12:48 +02:00
git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
2022-03-20 13:19:37 +01:00
}
prepare() {
cd libtool
# test 67 is broken with lto
# this patch removes the -flto flag for this very test
# adapt when -ffat-lto-objects is enabled by Arch
2023-01-22 17:59:52 +01:00
patch -Np1 -i "${srcdir}"/disable-lto-link-order2.patch
2022-03-20 13:19:37 +01:00
git submodule init
2023-01-22 17:59:52 +01:00
git config --local submodule.gnulib.url "${srcdir}"/gnulib
git config --local submodule.gl-mod/bootstrap.url "${srcdir}"/gnulib-bootstrap
git -c protocol.file.allow=always submodule update
2022-03-20 13:19:37 +01:00
./bootstrap
}
build() {
cd libtool
./configure --prefix=/usr lt_cv_sys_lib_dlsearch_path_spec="/usr/lib /usr/lib32"
make
}
check() {
cd libtool
make check gl_public_submodule_commit=
}
package() {
cd libtool
make DESTDIR="$pkgdir" install
}