[arch-commits] Commit in libaio/trunk (PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Thu Apr 7 17:13:32 UTC 2022


    Date: Thursday, April 7, 2022 @ 17:13:31
  Author: dvzrv
Revision: 441715

upgpkg: libaio 0.3.112-3: Rebuild to add debug package.

Add debug package.
Remove unneeded quotes.
Remove the use of -Werror in prepare().
Simplify calls to make.
Install docs and man pages in package().
Update maintainer info.

Modified:
  libaio/trunk/PKGBUILD

----------+
 PKGBUILD |   40 ++++++++++++++++++++++------------------
 1 file changed, 22 insertions(+), 18 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-07 16:13:06 UTC (rev 441714)
+++ PKGBUILD	2022-04-07 17:13:31 UTC (rev 441715)
@@ -1,36 +1,40 @@
-# Maintainer:  Bartłomiej Piotrowski <barthalion at gmail.com>
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: Bartłomiej Piotrowski <barthalion at gmail.com>
 # Contributor: Thomas S Hatch <thatch45 at gmail dot com>
 
 pkgname=libaio
 pkgver=0.3.112
-pkgrel=2
+pkgrel=3
 pkgdesc="The Linux-native asynchronous I/O facility (aio) library"
-arch=('x86_64')
+arch=(x86_64)
 url="https://pagure.io/libaio"
-license=('LGPL')
+license=(LGPL2.1)
+depends=(glibc)
+provides=(libaio.so)
+options=(debug)
 source=(https://releases.pagure.org/libaio/${pkgname}-${pkgver}.tar.gz)
-sha256sums=('ab0462f2c9d546683e5147b1ce9c195fe95d07fac5bf362f6c01637955c3b492')
+sha512sums=('5f984529c9f747a6c82f1e4457fc0832bb1fc299ae6e700f2ac5a8ea7b9bfc6ea1e75809728cc115a020cff6685ed1f4e38c6aeacc1ea98dfccce04dd19dafaa')
+b2sums=('088f3b195a65bdc97ae2318e47af17c65259ed3208dca7bfef93c81a800602085e5b2078dbd436c740be316d0ebd923a1b3b7c0808257e2e7c7fb0f7ae1e0dba')
 
+prepare() {
+  # -Werror, not even once
+  sed 's/-Werror//' -i $pkgname-$pkgver/harness/Makefile
+}
+
 build() {
-  cd "$srcdir/$pkgname-$pkgver"
-  # AIO library is a thin wrapper around kernel syscalls, it does not use stdlib
-  # and other helpers like stack protection libraries
+  # libaio is a thin wrapper around kernel syscalls, it does not use stdlib and
+  # other helpers like stack protection libraries
   CFLAGS="-march=${CARCH/_/-} -mtune=generic -O2 -pipe"
-  make
+  make -C $pkgname-$pkgver
 }
 
 check() {
-  cd "$srcdir/$pkgname-$pkgver"
-
-  # work around gcc warning (-Werror) in test suite
-  sed -i '/strncpy/s#sizeof(TEMPLATE)#sizeof(template)#' harness/cases/19.t
-  sed -i '/strncpy/s#sizeof(TEMPLATE)#sizeof(temp_file)#' harness/cases/21.t
-
-  make partcheck
+  make partcheck -k -C $pkgname-$pkgver
 }
 
 package() {
-  cd "$srcdir/$pkgname-$pkgver"
-  make prefix="$pkgdir/usr" install
+  make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
+  install -vDm 644 $pkgname-$pkgver/{ChangeLog,README.md} -t "$pkgdir/usr/share/doc/$pkgname/"
+  install -vDm 644 $pkgname-$pkgver/man/*.3 -t "$pkgdir/usr/share/man/man3/"
 }
 



More information about the arch-commits mailing list