PKGBUILDs/core/libaio/PKGBUILD

40 lines
1.2 KiB
Bash
Raw Normal View History

2014-11-12 16:57:50 +00:00
# Maintainer: Bartłomiej Piotrowski <barthalion@gmail.com>
# Contributor: Thomas S Hatch <thatch45 at gmail dot com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - replace CFLAGS setting with just a removal of -fstack-protector
pkgname=libaio
2019-04-10 23:44:51 +00:00
pkgver=0.3.112
2019-11-19 02:34:14 +00:00
pkgrel=2
2014-11-12 16:57:50 +00:00
pkgdesc="The Linux-native asynchronous I/O facility (aio) library"
2018-05-03 23:13:16 +00:00
arch=('x86_64')
2014-11-12 16:57:50 +00:00
url="http://lse.sourceforge.net/io/aio.html"
license=('LGPL')
2019-04-10 23:44:51 +00:00
source=(http://ftp.de.debian.org/debian/pool/main/liba/$pkgname/${pkgname}_${pkgver}.orig.tar.xz)
md5sums=('66e3b7dd255581a73542ee851f8cd737')
2014-11-12 16:57:50 +00:00
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
2018-05-03 23:13:16 +00:00
CFLAGS=`echo $CFLAGS | sed -e 's/-fstack-protector-strong//'` && CXXFLAGS="$CFLAGS"
2014-11-12 16:57:50 +00:00
make
}
check() {
cd "$srcdir/$pkgname-$pkgver"
2018-11-08 13:21:37 +00:00
# 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
2014-11-12 16:57:50 +00:00
make partcheck
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make prefix="$pkgdir/usr" install
}