PKGBUILDs/core/libaio/PKGBUILD

44 lines
1.5 KiB
Bash
Raw Normal View History

2022-04-09 01:14:02 +00:00
# Maintainer: David Runge <dvzrv@archlinux.org>
# Contributor: Bartłomiej Piotrowski <barthalion@gmail.com>
2014-11-12 16:57:50 +00:00
# Contributor: Thomas S Hatch <thatch45 at gmail dot com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2022-04-09 01:14:02 +00:00
# - replace simplified CFLAGS with ARM versions
2014-11-12 16:57:50 +00:00
pkgname=libaio
2019-04-10 23:44:51 +00:00
pkgver=0.3.112
2022-04-09 01:14:02 +00:00
pkgrel=3
2014-11-12 16:57:50 +00:00
pkgdesc="The Linux-native asynchronous I/O facility (aio) library"
2022-04-09 01:14:02 +00:00
arch=(x86_64)
url="https://pagure.io/libaio"
license=(LGPL2.1)
depends=(glibc)
provides=(libaio.so)
options=(debug)
source=(https://releases.pagure.org/libaio/${pkgname}-${pkgver}.tar.gz)
sha512sums=('5f984529c9f747a6c82f1e4457fc0832bb1fc299ae6e700f2ac5a8ea7b9bfc6ea1e75809728cc115a020cff6685ed1f4e38c6aeacc1ea98dfccce04dd19dafaa')
b2sums=('088f3b195a65bdc97ae2318e47af17c65259ed3208dca7bfef93c81a800602085e5b2078dbd436c740be316d0ebd923a1b3b7c0808257e2e7c7fb0f7ae1e0dba')
prepare() {
# -Werror, not even once
sed 's/-Werror//' -i $pkgname-$pkgver/harness/Makefile
}
2014-11-12 16:57:50 +00:00
build() {
2022-04-09 01:14:02 +00:00
# libaio is a thin wrapper around kernel syscalls, it does not use stdlib and
# other helpers like stack protection libraries
[[ $CARCH == "aarch64" ]] && CFLAGS="-march=armv8-a -O2 -pipe" || CFLAGS="-march=armv7-a -mfloat-abi=hard -mfpu=neon -O2 -pipe"
make -C $pkgname-$pkgver
2014-11-12 16:57:50 +00:00
}
check() {
2022-04-09 01:14:02 +00:00
make partcheck -k -C $pkgname-$pkgver
2014-11-12 16:57:50 +00:00
}
package() {
2022-04-09 01:14:02 +00:00
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/"
2014-11-12 16:57:50 +00:00
}