Advertisement
patlefort

Untitled

Jun 17th, 2024 (edited)
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.96 KB | Source Code | 0 0
  1. # Maintainer: Luis Aranguren <[email protected]>
  2. # Contributor: sifyfy <[email protected]>
  3.  
  4. pkgname=libgmp-static
  5. pkgver=6.3.0
  6. pkgrel=1
  7. pkgdesc='A free library for arbitrary precision arithmetic, but only includes libgmp.a and libgmpxx.a'
  8. arch=('x86_64')
  9. depends=("gmp>=$pkgver")
  10. url=https://gmplib.org
  11. license=('LGPL3' 'GPL2')
  12. options=(!lto)
  13. source=("https://gmplib.org/download/gmp/gmp-$pkgver.tar.lz")
  14. sha512sums=('b70f3603ab40270fa6e9a7ee1dc0f91477e45803d3ee2f22af924af89dcd18b483c900685310c9e69cee91dc1b6dec00cfec6a8a111022d0122b5427209a4a2d')
  15.  
  16. build() {
  17.     cd gmp-$pkgver
  18.  
  19.     export CFLAGS+=' -fPIC'
  20.     export CPPFLAGS+=' -DPIC'
  21.  
  22.     ./configure --prefix=/usr --enable-static --disable-shared --enable-cxx
  23.     make
  24. }
  25.  
  26. check() {
  27.     cd gmp-$pkgver
  28.     make check
  29. }
  30.  
  31. package() {
  32.     cd gmp-$pkgver
  33.  
  34.     DESTDIR="$pkgdir" make install
  35.  
  36.     rm -rf $pkgdir/usr/include
  37.     rm -rf $pkgdir/usr/share
  38.     rm -rf $pkgdir/usr/lib/pkgconfig
  39. }
  40.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement