jobcore/libaio/PKGBUILD
2024-02-20 15:27:59 +02:00

52 lines
1.6 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=libaio
pkgver=0.3.113
pkgrel=03
pkgdesc="The Linux-native asynchronous I/O facility (aio) library"
url="https://pagure.io/libaio"
depends=(glibc)
provides=(libaio.so)
# LTO is not supported: https://pagure.io/libaio/issue/10
# options=(debug) # uncomment to build debug package
#source=(https://releases.pagure.org/libaio/${pkgname}-${pkgver}.tar.gz) # previous source
options=(!lto)
source=($url/archive/$pkgname-$pkgver/$pkgname-$pkgname-$pkgver.tar.gz)
prepare() {
# -Werror, not even once
sed 's/-Werror//' -i $pkgname-$pkgname-$pkgver/harness/Makefile
# remove failing test until upstream fixes it
rm -frv $pkgname-$pkgname-$pkgver/harness/cases/21.t
}
build() {
make -C $pkgname-$pkgname-$pkgver
}
check() {
make partcheck -k -C $pkgname-$pkgname-$pkgver
}
package() {
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/"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=(LGPL-2.0-or-later)
sha256sums=(716c7059703247344eb066b54ecbc3ca2134f0103307192e6c2b7dab5f9528ab) # libaio-libaio-0.3.113.tar.gz
## 46cd88db16a1f810d325ec3bbe1672097fe5c596ee354c8a1cef3bd85a8a9d6e libaio-0.3.113-03-x86_64.pkg.tar.lz