jobcore/libaio/PKGBUILD

59 lines
2 KiB
Bash
Raw Normal View History

2022-03-20 13:19:37 +01:00
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
2022-03-20 13:19:37 +01:00
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
2022-03-20 13:19:37 +01:00
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=libaio
2022-04-14 23:30:54 +02:00
pkgver=0.3.113
pkgrel=02
2022-03-20 13:19:37 +01:00
pkgdesc="The Linux-native asynchronous I/O facility (aio) library"
url="https://pagure.io/libaio"
depends=(glibc)
provides=(libaio.so)
# options=(debug) # uncomment to build debug package
2022-04-14 23:30:54 +02:00
#source=(https://releases.pagure.org/libaio/${pkgname}-${pkgver}.tar.gz) # previous source
source=(https://pagure.io/libaio/archive/$pkgname-$pkgver/$pkgname-$pkgname-$pkgver.tar.gz)
2022-03-20 13:19:37 +01:00
prepare() {
# -Werror, not even once
2022-04-14 23:30:54 +02:00
sed 's/-Werror//' -i $pkgname-$pkgname-$pkgver/harness/Makefile
}
2022-03-20 13:19:37 +01:00
build() {
# libaio is a thin wrapper around kernel syscalls, it does not use stdlib and
# other helpers like stack protection libraries
2022-04-14 23:30:54 +02:00
CFLAGS="-march=${CARCH/_/-} -mtune=generic -O2 -pipe"
make -C $pkgname-$pkgname-$pkgver
2022-03-20 13:19:37 +01:00
}
check() {
2022-03-20 13:19:37 +01:00
# cd "$srcdir/$pkgname-$pkgver"
2022-04-14 23:30:54 +02:00
# ### keep tjos fix for next time it fails, you mever know with this one
2022-03-20 13:19:37 +01: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
# make partcheck
2022-04-14 23:30:54 +02:00
## make partcheck -k -C $pkgname-$pkgver
make partcheck -k -C $pkgname-$pkgname-$pkgver
}
2022-03-20 13:19:37 +01:00
package() {
2022-04-14 23:30:54 +02: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/"
2022-03-20 13:19:37 +01:00
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
2022-03-20 13:19:37 +01:00
license=(LGPL2.1)
2022-03-20 13:19:37 +01:00
2022-04-14 23:30:54 +02:00
sha256sums=(716c7059703247344eb066b54ecbc3ca2134f0103307192e6c2b7dab5f9528ab) # libaio-libaio-0.3.113.tar.gz
## feffe99338315fbb29828cb10004d40a38617a2e2399d32b9fcb39beb44eaf50 libaio-0.3.113-02-x86_64.pkg.tar.lz