new: lfs-12.2-systemd/libtool-2.4.7

This commit is contained in:
Yingjie Wang 2025-01-21 22:49:56 -05:00
parent 6fd2596acf
commit 2ec2421534

View File

@ -0,0 +1,28 @@
pkgname=libtool
pkgver=2.4.7
pkgdesc='A generic library support script'
homepage='https://www.gnu.org/software/libtool'
license=('LGPL-2.0-or-later WITH Libtool-exception')
sources=("${pkgname}-${pkgver}.tar.xz")
urls=("https://ftp.gnu.org/gnu/${pkgname}/${sources[0]}")
md5sums=("2fc0b6ddcd66a89ed6e45db28fa44232")
src_prepare() {
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
}
src_build() {
./configure --prefix=/usr lt_cv_sys_lib_dlsearch_path_spec="/usr/lib /usr/lib32"
make
}
src_check() {
leaf_record_message "Two of the tests are known to fail. See LFS handbook."
make -k check
}
src_install() {
make DESTDIR="${pkgdir}" install
rm -fv "${pkgdir}/usr/lib/libltdl.a"
}