summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Grande2020-12-24 13:52:00 -0500
committerVincent Grande2020-12-24 13:52:00 -0500
commit8893ad28c9b2817b177c1f2d5ac002b348239728 (patch)
tree2f1aba2b43c6dce60fd93c00f3e652b55477636e
downloadaur-8893ad28c9b2817b177c1f2d5ac002b348239728.tar.gz
initial upload
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD69
2 files changed, 88 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..c50c2362271
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = lib32-gmp-git
+ pkgdesc = A free library for arbitrary precision arithmetic (32-bit)
+ pkgver = 6.2.1
+ pkgrel = 1
+ url = https://gmplib.org/
+ arch = x86_64
+ license = LGPL3
+ license = GPL
+ makedepends = gcc-multilib
+ makedepends = mercurial
+ depends = lib32-gcc-libs
+ depends = gmp
+ provides = lib32-gmp
+ conflicts = lib32-gmp
+ source = hg+https://gmplib.org/repo/gmp/
+ sha512sums = SKIP
+
+pkgname = lib32-gmp-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2857a80f353
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,69 @@
+# Maintainer: Vincent Grande <shoober420@gmail.com>
+# Contributor: Adrien Prost-Boucle <adrien.prost-boucle@laposte.net>
+# Contributor: Florian Pritz <bluewind@xinu.at>
+# Contributor: Felix Yan <felixonmars@archlinux.org>
+# Contributor: josephgbr <rafael.f.f1@gmail.com>
+
+_pkgbasename=gmp
+pkgname=lib32-$_pkgbasename-git
+pkgver=6.2.1
+pkgrel=1
+pkgdesc="A free library for arbitrary precision arithmetic (32-bit)"
+arch=('x86_64')
+url="https://gmplib.org/"
+depends=('lib32-gcc-libs' $_pkgbasename)
+makedepends=(gcc-multilib mercurial)
+license=('LGPL3' 'GPL')
+source=("hg+https://gmplib.org/repo/gmp/")
+provides=(lib32-gmp)
+conflicts=(lib32-gmp)
+sha512sums=('SKIP')
+#validpgpkeys=('343C2FF0FBEE5EC2EDBEF399F3599FF828C67298') # Niels Möller
+
+pkgver() {
+ cd "gmp"
+
+ # GMP version (extracted from gmp-h.in)
+ _gmpvermaj=`sed -n -e 's/^.*__GNU_MP_VERSION[[:space:]]*\([[:digit:]]*\)[[:space:]]*$/\1/p' gmp-h.in`
+ _gmpvermin=`sed -n -e 's/^.*__GNU_MP_VERSION_MINOR[[:space:]]*\([[:digit:]]*\)[[:space:]]*$/\1/p' gmp-h.in`
+ _gmpverrev=`sed -n -e 's/^.*__GNU_MP_VERSION_PATCHLEVEL[[:space:]]*\([[:digit:]]*\)[[:space:]]*$/\1/p' gmp-h.in`
+ _gmpver=$_gmpvermaj.$_gmpvermin.$_gmpverrev
+ # Date of the last commit
+ _hgver=`hg identify -n`
+
+ echo $_gmpver.hg$_hgver;
+}
+
+build() {
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ cd gmp
+
+ export ABI=32
+
+ ./.bootstrap
+
+ ./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() {
+# gmp
+# make check
+#}
+
+package() {
+ cd gmp
+ make DESTDIR="${pkgdir}" install
+
+ rm -rf "${pkgdir}"/usr/{include,share,bin}
+}