blob: 09f794d4dbe9b128c51b7a70b9ec1e28dcdc49b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Maintainer: Luis Aranguren <pizzaman@hotmail.com>
# Contributor: sifyfy <sifyfy@sifyfy.dev>
pkgname=libgmp-static
pkgver=6.3.0
pkgrel=2
pkgdesc='A free library for arbitrary precision arithmetic, but only includes libgmp.a and libgmpxx.a'
arch=('x86_64')
depends=("gmp>=$pkgver")
url=https://gmplib.org
license=('LGPL3' 'GPL2')
options=(!lto)
source=("https://gmplib.org/download/gmp/gmp-$pkgver.tar.lz")
sha512sums=('b70f3603ab40270fa6e9a7ee1dc0f91477e45803d3ee2f22af924af89dcd18b483c900685310c9e69cee91dc1b6dec00cfec6a8a111022d0122b5427209a4a2d')
build() {
cd gmp-$pkgver
export CFLAGS+=' -fPIC'
export CPPFLAGS+=' -DPIC'
./configure --prefix=/usr --enable-static --disable-shared --enable-cxx
make
}
check() {
cd gmp-$pkgver
make check
}
package() {
cd gmp-$pkgver
DESTDIR="$pkgdir" make install
rm -rf $pkgdir/usr/include
rm -rf $pkgdir/usr/share
rm -rf $pkgdir/usr/lib/pkgconfig
}
|