[arch-commits] Commit in libaio/repos (extra-x86_64 extra-x86_64/PKGBUILD)

Antonio Rojas arojas at archlinux.org
Wed Apr 10 20:01:23 UTC 2019


    Date: Wednesday, April 10, 2019 @ 20:01:19
  Author: arojas
Revision: 350530

archrelease: copy trunk to extra-x86_64

Added:
  libaio/repos/extra-x86_64/
  libaio/repos/extra-x86_64/PKGBUILD
    (from rev 350529, libaio/trunk/PKGBUILD)

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

Copied: libaio/repos/extra-x86_64/PKGBUILD (from rev 350529, libaio/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD	                        (rev 0)
+++ extra-x86_64/PKGBUILD	2019-04-10 20:01:19 UTC (rev 350530)
@@ -0,0 +1,36 @@
+# Maintainer:  Bartłomiej Piotrowski <barthalion at gmail.com>
+# Contributor: Thomas S Hatch <thatch45 at gmail dot com>
+
+pkgname=libaio
+pkgver=0.3.112
+pkgrel=1
+pkgdesc="The Linux-native asynchronous I/O facility (aio) library"
+arch=('x86_64')
+url="http://lse.sourceforge.net/io/aio.html"
+license=('LGPL')
+source=(http://ftp.de.debian.org/debian/pool/main/liba/$pkgname/${pkgname}_${pkgver}.orig.tar.xz)
+md5sums=('66e3b7dd255581a73542ee851f8cd737')
+
+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
+  CFLAGS="-march=${CARCH/_/-} -mtune=generic -O2 -pipe"
+  make
+}
+
+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
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make prefix="$pkgdir/usr" install
+}
+



More information about the arch-commits mailing list