| 1 | # Contributor: Jakub Jirutka <[email protected]> |
| 2 | # Maintainer: Jakub Jirutka <[email protected]> |
| 3 | pkgname=libabigail |
| 4 | pkgver=2.8 |
| 5 | pkgrel=0 |
| 6 | pkgdesc="The ABI Generic Analysis and Instrumentation Library" |
| 7 | url="https://sourceware.org/libabigail/" |
| 8 | arch="all" |
| 9 | license="Apache-2.0 WITH LLVM-exception" |
| 10 | makedepends=" |
| 11 | autoconf |
| 12 | automake |
| 13 | elfutils-dev |
| 14 | libtool |
| 15 | libxml2-dev |
| 16 | musl-fts-dev |
| 17 | py3-sphinx |
| 18 | xxhash-dev |
| 19 | " |
| 20 | checkdepends=" |
| 21 | bash |
| 22 | python3 |
| 23 | " |
| 24 | subpackages=" |
| 25 | $pkgname-dev |
| 26 | $pkgname-tools |
| 27 | $pkgname-doc |
| 28 | $pkgname-bash-completion |
| 29 | " |
| 30 | source="https://mirrors.kernel.org/sourceware/libabigail/libabigail-$pkgver.tar.xz |
| 31 | apk.patch |
| 32 | " |
| 33 | |
| 34 | prepare() { |
| 35 | default_prepare |
| 36 | |
| 37 | autoreconf -fi |
| 38 | } |
| 39 | |
| 40 | build() { |
| 41 | # utilities use a bit more stack size than normal |
| 42 | export LDFLAGS="$LDFLAGS -Wl,-z,stack-size=512000" |
| 43 | ./configure \ |
| 44 | --build=$CBUILD \ |
| 45 | --host=$CHOST \ |
| 46 | --prefix=/usr \ |
| 47 | --sysconfdir=/etc \ |
| 48 | --mandir=/usr/share/man \ |
| 49 | --localstatedir=/var \ |
| 50 | --enable-rpm=no \ |
| 51 | --enable-rpm415=no \ |
| 52 | --enable-debug-self-comparison=no \ |
| 53 | --enable-deb=no \ |
| 54 | --enable-tar=yes \ |
| 55 | --enable-apidoc=no \ |
| 56 | --enable-manual=yes \ |
| 57 | --enable-bash-completion=yes \ |
| 58 | --enable-fedabipkgdiff=no \ |
| 59 | --enable-python3=yes |
| 60 | make |
| 61 | make -C doc/manuals man |
| 62 | } |
| 63 | |
| 64 | check() { |
| 65 | make check check-self-compare || { |
| 66 | cat tests/test-suite.log |
| 67 | return 1 |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | package() { |
| 72 | make DESTDIR="$pkgdir" install |
| 73 | make -C doc/manuals DESTDIR="$pkgdir" install-man-and-info-doc |
| 74 | |
| 75 | cd bash-completion |
| 76 | install -D -m644 -t "$pkgdir"/usr/share/bash-completion/completions/ \ |
| 77 | abicompat \ |
| 78 | abidiff \ |
| 79 | abidw \ |
| 80 | abilint \ |
| 81 | abipkgdiff |
| 82 | |
| 83 | } |
| 84 | |
| 85 | tools() { |
| 86 | pkgdesc="$pkgdesc (CLI tools)" |
| 87 | depends="$pkgname=$pkgver-r$pkgrel" |
| 88 | |
| 89 | amove usr/bin |
| 90 | } |
| 91 | |
| 92 | sha512sums=" |
| 93 | e919f12c914addb9c64d15d40c50e50ce1b08ac8f64f11adb9274cbdfc568b7e2eb99f669866b413a3e6c6246611b529be1f8d226cf58f7a5c6e2a7061d88e8c libabigail-2.8.tar.xz |
| 94 | ab587a845701e46f85d4c0e867abff11b7213c8df29cf08a4a5c372f9328f45c1b767496cfd8d07413856dee9d28a9174beaf7c0019abefd37b145a536e3777d apk.patch |
| 95 | " |