PKGBUILDs/core/libaio/PKGBUILD

44 lines
1.6 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
2022-04-21 12:56:36 +00:00
pkgver=0.3.113
pkgrel=1
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)
2022-04-21 12:56:36 +00:00
source=(https://pagure.io/libaio/archive/$pkgname-$pkgver/$pkgname-$pkgname-$pkgver.tar.gz)
sha512sums=('8058c927de0b5f7079fc232d2be23272537694bf271488af1dc0330b58afc307931792ab138512c5e00aa3ea921935a6d862f575fb0cc2bf323de63d8df208cd')
b2sums=('e06c1c1cc118c15f6bed1abfa97368d7ccc0d2e716a233cd4141936fb382e40909c340a6c882b18ee9461aaa23dd77a6644a38bdb5a00c1444538a2e0ab816d4')
2022-04-09 01:14:02 +00:00
prepare() {
# -Werror, not even once
2022-04-21 12:56:36 +00:00
sed 's/-Werror//' -i $pkgname-$pkgname-$pkgver/harness/Makefile
2022-04-09 01:14:02 +00:00
}
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"
2022-04-21 12:56:36 +00:00
make -C $pkgname-$pkgname-$pkgver
2014-11-12 16:57:50 +00:00
}
check() {
2022-04-21 12:56:36 +00:00
make partcheck -k -C $pkgname-$pkgname-$pkgver
2014-11-12 16:57:50 +00:00
}
package() {
2022-04-21 12:56:36 +00:00
make DESTDIR="$pkgdir" install -C $pkgname-$pkgname-$pkgver
install -vDm 644 $pkgname-$pkgname-$pkgver/{ChangeLog,README.md} -t "$pkgdir/usr/share/doc/$pkgname/"
install -vDm 644 $pkgname-$pkgname-$pkgver/man/*.3 -t "$pkgdir/usr/share/man/man3/"
2014-11-12 16:57:50 +00:00
}