jobcore/libtool/PKGBUILD

98 lines
2.9 KiB
Bash
Raw Permalink Normal View History

2022-03-20 13:19:37 +01:00
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
2024-08-22 17:58:58 +02:00
# PkgSource : url="https://git.disroot.org/joborun-pkg/jobcore/src/branch/main/$pkgname"
# Website : https://pozol.eu
2022-03-20 13:19:37 +01:00
#-----------------------------------------| DESCRIPTION |---------------------------------------
# toolchain build order: linux-api-headers->glibc->binutils->gcc->libtool->glibc->binutils->gcc
# NOTE: libtool requires rebuilt with each new gcc version
2022-03-20 13:19:37 +01:00
pkgname=libtool
2024-09-26 01:44:20 +02:00
pkgver=2.5.3
_commit=94dd1a2094911d6ed3cf0df37b836c837b4e3800
2024-08-30 01:12:48 +02:00
pkgrel=01
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'
url='https://www.gnu.org/software/libtool'
groups=(jobbot)
2022-03-20 13:19:37 +01:00
depends=(sh tar glibc)
makedepends=("gcc>=$_gccver" git help2man automake autoconf)
checkdepends=(gcc-fortran)
provides=("libltdl=$pkgver" "libtool-multilib=$pkgver")
conflicts=(libltdl libtool-multilib)
replaces=(libltdl libtool-multilib)
# options=(debug) # uncomment to have the libtool-debug pkg built
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)
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
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
}
2024-06-19 21:42:43 +02:00
# # 2.5.0+14+g9a4a0261
#170: Use -no-canonical-prefixes flag ok
#
## ------------- ##
## Test results. ##
## ------------- ##
#
#ERROR: 150 tests were run,
#7 failed (5 expected failures).
#20 tests were skipped.
2022-03-20 13:19:37 +01:00
check() {
cd libtool
make check gl_public_submodule_commit=
}
package() {
cd libtool
make DESTDIR="$pkgdir" install
}
2023-07-17 02:41:21 +02:00
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
2022-03-20 13:19:37 +01:00
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
2024-09-26 01:44:20 +02:00
b2sums=('d06a317e2d59a605db5e9d91727ee5d7503e6e1319a9c1bb68ee7d5c43880f465488a168fffbccfe01bef4f3924f121591e02ba5bfd093d85d4a72bc0f7842e7'
'SKIP'
'SKIP'
'9d1e0460b9ef56ba33ac498814b409d1b1d7c3e8ed41a3aed2a86d86341ed7051ca88a5adfa92bd87da968460514230058c3d490b58537d95722e68d7d1687ff')
2024-09-26 01:44:20 +02:00
sha256sums=(dcedf84314c58fe57612e45042d7d1de3be9668760e28c16dd68eda1bf6835a4 # libtool 2.5.3
2022-03-20 13:19:37 +01:00
SKIP
SKIP
b6dce6681f223b18a90614edbcdeb00f228abd1216e22c4bd07285321cd2ceb7) # disable-lto-link-order2.patch
2024-08-09 10:48:00 +02:00
2024-09-26 01:44:20 +02:00
## 1f7a3d59b3592fb7a82ac5b5344279f8335e2efb942c1f4be54eb6c902452f19 libtool-2.5.3-01-x86_64.pkg.tar.lz
2024-08-30 01:12:48 +02:00