From 336448cf1fabcd290c83569b9576e3914c719e9f Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Sat, 7 Sep 2024 23:18:11 +0800 Subject: [PATCH] libffi 3.4.6-1 --- libffi/PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 libffi/PKGBUILD diff --git a/libffi/PKGBUILD b/libffi/PKGBUILD new file mode 100644 index 0000000..e3b6f6f --- /dev/null +++ b/libffi/PKGBUILD @@ -0,0 +1,32 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Future Linux Team +pkgname=libffi +pkgver=3.4.6 +pkgrel=1 +pkgdesc="Portable foreign function interface library" +arch=('x86_64') +url="https://sourceware.org/libffi/" +license=('MIT') +depends=('glibc') +source=(https://github.com/libffi/libffi/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz) +sha256sums=(b0dea9df23c863a7a50e825440f3ebffabd65df1497108e5d437747843895a4e) + +build() { + cd ${pkgname}-${pkgver} + + ${CONFIGURE} \ + --disable-static \ + --with-gcc-arch=native + + make +} + +package() { + cd ${pkgname}-${pkgver} + + make DESTDIR=${pkgdir} install +}