[arch-commits] Commit in lib32-gmp/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Nov 9 22:50:44 UTC 2018


    Date: Friday, November 9, 2018 @ 22:50:43
  Author: felixonmars
Revision: 405099

archrelease: copy trunk to multilib-staging-x86_64

Added:
  lib32-gmp/repos/multilib-staging-x86_64/
  lib32-gmp/repos/multilib-staging-x86_64/PKGBUILD
    (from rev 405098, lib32-gmp/trunk/PKGBUILD)

----------+
 PKGBUILD |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

Copied: lib32-gmp/repos/multilib-staging-x86_64/PKGBUILD (from rev 405098, lib32-gmp/trunk/PKGBUILD)
===================================================================
--- multilib-staging-x86_64/PKGBUILD	                        (rev 0)
+++ multilib-staging-x86_64/PKGBUILD	2018-11-09 22:50:43 UTC (rev 405099)
@@ -0,0 +1,49 @@
+# Maintainer: Florian Pritz <bluewind at xinu.at>
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: josephgbr <rafael.f.f1 at gmail.com>
+
+_pkgbasename=gmp
+pkgname=lib32-$_pkgbasename
+pkgver=6.1.2
+pkgrel=2
+pkgdesc="A free library for arbitrary precision arithmetic (32-bit)"
+arch=('x86_64')
+url="http://gmplib.org/"
+depends=('lib32-gcc-libs' $_pkgbasename)
+makedepends=(gcc-multilib)
+license=('LGPL3' 'GPL')
+source=(https://gmplib.org/download/gmp/gmp-${pkgver}.tar.xz{,.sig})
+md5sums=('f58fa8001d60c4c77595fbbb62b63c1d'
+         'SKIP')
+validpgpkeys=('343C2FF0FBEE5EC2EDBEF399F3599FF828C67298') # Niels Möller
+
+build() {
+  export CC="gcc -m32"
+  export CXX="g++ -m32"
+  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+  cd "${_pkgbasename}-${pkgver}"
+
+  export ABI=32
+  ./configure \
+    --prefix=/usr --infodir=/usr/share/info \
+    --enable-fat --enable-cxx --libdir=/usr/lib32 \
+    --includedir=/usr/lib32/gmp
+
+  #Put gmp.h in the same folder as gmpxx.h
+  sed -i 's/$(exec_prefix)\/include/$\(includedir\)/' Makefile
+
+  make
+}
+
+check() {
+  cd "${_pkgbasename}-${pkgver}"
+  make check
+}
+
+package() {
+  cd "${_pkgbasename}-${pkgver}"
+  make DESTDIR="${pkgdir}" install
+
+  rm -rf "${pkgdir}"/usr/{include,share,bin}
+}



More information about the arch-commits mailing list