[arch-commits] Commit in libabigail/repos (community-x86_64 community-x86_64/PKGBUILD)

George Rawlinson grawlinson at gemini.archlinux.org
Sat Apr 9 21:00:29 UTC 2022


    Date: Saturday, April 9, 2022 @ 21:00:29
  Author: grawlinson
Revision: 1183175

archrelease: copy trunk to community-x86_64

Added:
  libabigail/repos/community-x86_64/
  libabigail/repos/community-x86_64/PKGBUILD
    (from rev 1183174, libabigail/trunk/PKGBUILD)

----------+
 PKGBUILD |   88 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 88 insertions(+)

Copied: libabigail/repos/community-x86_64/PKGBUILD (from rev 1183174, libabigail/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-04-09 21:00:29 UTC (rev 1183175)
@@ -0,0 +1,88 @@
+# Maintainer: George Rawlinson <grawlinson at archlinux.org>
+# Contributor: Alexander 'z33ky' Hirsch <1zeeky at gmail.com>
+
+pkgname=libabigail
+pkgver=2.0
+pkgrel=2
+pkgdesc='ABI Generic Analysis and Instrumentation Library'
+arch=('x86_64')
+license=('Apache')
+url='https://sourceware.org/libabigail/'
+depends=(
+  'libxml2'
+  'elfutils'
+  'python'
+)
+makedepends=(
+  'git'
+  'python-sphinx'
+)
+_commit='7060a0b2675e871e49ff0e17b691113bbe1a7c5d'
+source=("git://sourceware.org/git/libabigail.git#commit=$_commit")
+b2sums=('SKIP')
+
+pkgver() {
+  cd "$pkgname"
+
+  git describe --tags | sed 's/^libabigail-//'
+}
+
+prepare() {
+  cd "$pkgname"
+
+  # add man page for kmidiff
+  git cherry-pick --no-commit eb3e549794d059294cf1f4a63865e6eb7af8b2e3
+
+  autoreconf -fi
+}
+
+build() {
+  cd "$pkgname"
+
+  ./configure \
+    --prefix=/usr \
+    --enable-bash-completion \
+    --disable-manual \
+    --disable-apidoc \
+    --disable-static
+
+  make
+
+  # man pages
+  make -C doc/manuals man
+}
+
+check() {
+  cd "$pkgname"
+
+  make check
+}
+
+package() {
+  cd "$pkgname"
+
+  make DESTDIR="$pkgdir" install
+
+  # man pages
+  OLDIFS="$IFS"
+  IFS="."
+  pushd doc/manuals/man
+
+  # delete Fedora-specific man page
+  rm -vf fedabipkgdiff.1
+
+  for filename in *; do
+    read -ra PART <<< "$filename"
+    section="${PART[1]}"
+    install -vDm644 -t "$pkgdir/usr/share/man/man${section}" "$filename"
+  done
+  IFS="$OLDIFS"
+  unset OLDIFS
+  popd
+
+  # bash completion
+  cd bash-completion
+  for filename in abicompat abidiff abidw abilint abipkgdiff; do
+    install -vDm644 -t "$pkgdir/usr/share/bash-completion/completions" "$filename"
+  done
+}



More information about the arch-commits mailing list