PKGBUILDs/core/libtool/PKGBUILD

82 lines
2.4 KiB
Bash
Raw Normal View History

2022-02-15 00:46:26 +00:00
# Maintainer: Giancarlo Razzolini <grazzolini@archlinux.org>
# Maintainer: Frederik Schwan <freswa at archlinux dot org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
2017-09-09 16:46:46 +00:00
# Contributor: Allan McRae <allan@archlinux.org>
2012-05-13 23:41:15 +00:00
# Contributor: judd <jvinet@zeroflux.org>
# NOTE: requires rebuilt with each new gcc version
2014-12-14 17:33:10 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - noautobuild, !distcc
# - removed multilib stuff
2014-12-14 17:36:44 +00:00
# - patch for armv7h tests
2014-12-14 17:33:10 +00:00
2015-05-22 00:55:54 +00:00
noautobuild=1
2014-12-14 17:33:10 +00:00
2014-12-14 15:46:10 +00:00
pkgname=libtool
2024-08-31 10:41:40 +00:00
pkgver=2.5.2+r1+g2fe3a3e2
_commit=2fe3a3e2a954adcbfb1139d780bec47b85ef6077
pkgrel=1
2024-08-04 10:27:21 +00:00
_gccver=14.2.1
2017-09-09 16:46:46 +00:00
pkgdesc='A generic library support script'
2017-12-07 13:49:07 +00:00
arch=(x86_64)
2019-11-21 18:48:17 +00:00
url='https://www.gnu.org/software/libtool'
2024-05-15 13:15:59 +00:00
license=('LGPL-2.0-or-later WITH Libtool-exception')
2017-09-09 16:46:46 +00:00
depends=(sh tar glibc)
2018-03-20 11:19:51 +00:00
makedepends=("gcc>=$_gccver" git help2man)
2018-05-07 12:34:20 +00:00
checkdepends=(gcc-fortran)
2014-12-14 17:36:44 +00:00
provides=("libltdl=$pkgver")
2018-03-20 11:19:51 +00:00
conflicts=(libltdl)
replaces=(libltdl)
2022-02-15 00:46:26 +00:00
options=(!distcc)
2024-05-08 18:28:50 +00:00
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
armv7h-nopic.patch
)
2024-08-31 10:41:40 +00:00
b2sums=('191bd0dde07c5dc39c7e1cc8ea7169f2a37ad89ac83b549c5ef5437395e9121052c0a32ac43b6876bd4c978e742a326d6c33e8d930674ec109caa7fe5335cc1d'
2024-05-08 18:28:50 +00:00
'SKIP'
'SKIP'
'9d1e0460b9ef56ba33ac498814b409d1b1d7c3e8ed41a3aed2a86d86341ed7051ca88a5adfa92bd87da968460514230058c3d490b58537d95722e68d7d1687ff'
'4a65a2525c8709faf7fe39dfada893e3a21d021f83c25b0798fe0584386c25755877e8b7c220fee6f252e4f2a42b47e4ba3bec36297d01e654b040232b0a711b')
2017-09-09 16:46:46 +00:00
pkgver() {
2017-12-07 13:49:07 +00:00
cd libtool
2024-08-31 10:41:40 +00:00
git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
2017-09-09 16:46:46 +00:00
}
2012-05-13 23:41:15 +00:00
2014-12-14 17:22:09 +00:00
prepare() {
2017-12-07 13:49:07 +00:00
cd libtool
2019-11-21 18:48:17 +00:00
2022-02-15 00:46:26 +00:00
# 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-18 00:33:26 +00:00
patch -Np1 -i "${srcdir}"/disable-lto-link-order2.patch
2019-11-21 18:48:17 +00:00
git submodule init
2023-01-18 00:33:26 +00: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
2019-11-21 18:48:17 +00:00
2014-12-14 17:22:09 +00:00
patch -p1 -i ../armv7h-nopic.patch
2017-09-09 16:46:46 +00:00
./bootstrap
2014-12-14 17:22:09 +00:00
}
2012-05-13 23:41:15 +00:00
build() {
2017-12-07 13:49:07 +00:00
cd libtool
2017-09-09 16:46:46 +00:00
./configure --prefix=/usr lt_cv_sys_lib_dlsearch_path_spec="/usr/lib /usr/lib32"
2012-05-13 23:41:15 +00:00
make
}
check() {
2017-12-07 13:49:07 +00:00
cd libtool
2018-05-07 12:34:20 +00:00
make check gl_public_submodule_commit=
2012-05-13 23:41:15 +00:00
}
2014-12-14 15:46:10 +00:00
package() {
2017-12-07 13:49:07 +00:00
cd libtool
2017-09-09 16:46:46 +00:00
make DESTDIR="$pkgdir" install
2012-05-13 23:41:15 +00:00
}