| 1 | # Contributor: Celeste <[email protected]> |
| 2 | maintainer="Achill Gilgenast <[email protected]>" |
| 3 | pkgname=libtool |
| 4 | pkgver=2.6.2 |
| 5 | pkgrel=1 |
| 6 | pkgdesc="Generic library support script" |
| 7 | url="https://www.gnu.org/software/libtool/" |
| 8 | arch="all" |
| 9 | license="LGPL-2.0-or-later AND GPL-2.0-or-later" |
| 10 | # libtool-next-version expects a `diff` that doesn't default to unified context |
| 11 | depends=" |
| 12 | diffutils |
| 13 | libltdl=$pkgver-r$pkgrel |
| 14 | " |
| 15 | makedepends=" |
| 16 | autoconf |
| 17 | automake |
| 18 | help2man |
| 19 | m4 |
| 20 | texinfo |
| 21 | " |
| 22 | subpackages="libltdl-static libltdl $pkgname-doc" |
| 23 | source="https://ftp.gnu.org/gnu/libtool/libtool-$pkgver.tar.gz |
| 24 | no-xz.patch |
| 25 | " |
| 26 | options="libtool !archcheck" # arch-specific files moved into libltdl |
| 27 | |
| 28 | prepare() { |
| 29 | default_prepare |
| 30 | |
| 31 | cp -v README README-release |
| 32 | ./bootstrap -cf --skip-git --skip-po |
| 33 | } |
| 34 | |
| 35 | build() { |
| 36 | ./configure \ |
| 37 | --build=$CBUILD \ |
| 38 | --host=$CHOST \ |
| 39 | --prefix=/usr \ |
| 40 | --sysconfdir=/etc \ |
| 41 | --mandir=/usr/share/man \ |
| 42 | --localstatedir=/var |
| 43 | make |
| 44 | } |
| 45 | |
| 46 | check() { |
| 47 | # "recursive" repeats the entire test suite with shorter max_cmd_len |
| 48 | make check TESTSUITEFLAGS="-j$JOBS --keywords=!recursive" SUBDIRS=. |
| 49 | } |
| 50 | |
| 51 | package() { |
| 52 | make DESTDIR="$pkgdir" install |
| 53 | } |
| 54 | |
| 55 | libltdl() { |
| 56 | pkgdesc="Runtime libraries for GNU Libtool Dynamic Module Loader" |
| 57 | depends= |
| 58 | |
| 59 | amove usr/lib/libltdl.so* |
| 60 | } |
| 61 | |
| 62 | sha512sums=" |
| 63 | e4e4df9f191152241c813e3f79f6afdc4b8a0a6d9e94d76f2b9fbea6ab98a9f5280376ec34325b5a08bc93e5b702fb2e7183488294457ee8bed33e1ec8aa4a35 libtool-2.6.2.tar.gz |
| 64 | d959624c03333f63bc6671822358cd0b9de071c4cab3f54b42c2b44b052cb4194ad5a4c5dae93eff2bbe60ad0f024acdea32d68839b4fd4da74a6d74d65f7dd6 no-xz.patch |
| 65 | " |