From 8a523947524a290583aff37c165e2624f52e9902 Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Sat, 7 Sep 2024 23:18:11 +0800 Subject: [PATCH] gmp 6.3.0-1 --- gmp/PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 gmp/PKGBUILD diff --git a/gmp/PKGBUILD b/gmp/PKGBUILD new file mode 100644 index 0000000..d60b1d9 --- /dev/null +++ b/gmp/PKGBUILD @@ -0,0 +1,35 @@ +# 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=gmp +pkgver=6.3.0 +pkgrel=1 +pkgdesc="A free library for arbitrary precision arithmetic" +arch=('x86_64') +url="https://www.gnu.org/software/gmp/" +license=('GPL-2.0-or-later' 'LGPL-3.0-or-later') +depends=('gcc-libs' 'bash') +source=(https://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.xz) +sha256sums=(a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898) + +build() { + cd ${pkgname}-${pkgver} + + ${CONFIGURE} \ + --enable-cxx \ + --disable-static \ + --docdir=/usr/share/doc/${pkgname}-${pkgver} + + make + make html +} + +package() { + cd ${pkgname}-${pkgver} + + make DESTDIR=${pkgdir} install + make DESTDIR=${pkgdir} install-html +}