jobcore/libtool/PKGBUILD

99 lines
3 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://git.disroot.org/joborun-pkg/jobcore/src/branch/main/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
# toolchain build order: linux-api-headers->glibc->binutils->gcc->libtool->glibc->binutils->gcc
# NOTE: libtool requires rebuilt with each new gcc version
pkgname=libtool
pkgver=2.5.4+r24+ge6dd1eb7
_commit=e6dd1eb7cff22f4a3a0e17343e69fc22f948cb5e
pkgrel=002
_gccver=14.3.0
pkgdesc='A generic library support script'
url='https://www.gnu.org/software/libtool'
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
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)
pkgver() {
cd libtool
git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
# git describe --long --abbrev=8 | sed 's/^v//; s/-/+/; s/-/\./'
}
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
git submodule init
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
./bootstrap
}
build() {
cd libtool
./configure --prefix=/usr lt_cv_sys_lib_dlsearch_path_spec="/usr/lib /usr/lib32"
make
}
# # 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.
check() {
cd libtool
make check gl_public_submodule_commit=
}
package() {
cd libtool
make DESTDIR="$pkgdir" install
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('LGPL-2.0-or-later WITH Libtool-exception')
b2sums=('fdd94773c1b7092e0a4fb15d55ffd5902b81734d3ff7333718914db13ada7a629257fdb879d23a0f8c935f13571a5e80fe91344631cbbafecdb03eb370867b86'
'SKIP'
'SKIP'
'9d1e0460b9ef56ba33ac498814b409d1b1d7c3e8ed41a3aed2a86d86341ed7051ca88a5adfa92bd87da968460514230058c3d490b58537d95722e68d7d1687ff')
sha256sums=('bca10a1f54fec6a64c8c1c1b98cc12b27e71f0aa6f5788f8e4d806ad1e9860cd'
'SKIP'
'SKIP'
'b6dce6681f223b18a90614edbcdeb00f228abd1216e22c4bd07285321cd2ceb7')
## f064ad244bb378923af3ae0db5b11101f1301166646b416364970c51f2a907b2 libtool-2.5.4+r24+ge6dd1eb7-01-x86_64.pkg.tar.lz