From 8dc90014314385e1ae719cc089e195a8b2616e5c Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Sun, 17 Nov 2024 17:12:41 +0800 Subject: [PATCH] libaio 0.3.113-1 --- PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..cfbd388 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Future Linux Team + +pkgname=libaio +pkgver=0.3.113 +pkgrel=1 +pkgdesc="The Linux-native asynchronous I/O facility (aio) library" +arch=('x86_64') +url="https://pagure.io/libaio" +license=('LGPL2.1') +depends=('glibc') +options=('!lto') +source=(https://pagure.io/libaio/archive/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz) +sha256sums=(1c561c20670c5c09cc8437a622008c0693c6a7816c1f30332da3796953b2f454) + +prepare() { + cd ${pkgname}-${pkgver} + + sed -i '/install.*libaio.a/s/^/#/' src/Makefile + sed -i 's@libdir=$(prefix)/lib@libdir=$(prefix)/lib64@g' Makefile +} + +build() { + cd ${pkgname}-${pkgver} + + make +} + +package() { + cd ${pkgname}-${pkgver} + + make DESTDIR=${pkgdir} install +}