summaryrefslogblamecommitdiff
path: root/system/gmp/APKBUILD
blob: e5c71a7835f7c918dc757dceba5630e3ee8f7970 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                                        
           
            
        


                                                           
                               
          
                                                  
                                                
                                                           

           
                       
                     


         













                                                



                                            








                                                                
                                                                                                                                                               
# Maintainer: Adelie Platform Group <adelie-devel@lists.adelielinux.org>
pkgname=gmp
pkgver=6.2.1
pkgrel=2
pkgdesc="A free library for arbitrary precision arithmetic"
url="https://gmplib.org/"
arch="all"
license="LGPL-3.0+ OR GPL-2.0+"
depends=""
makedepends="autoconf automake m4 texinfo libtool"
subpackages="$pkgname-doc $pkgname-dev libgmpxx"
source="https://gmplib.org/download/gmp/gmp-$pkgver.tar.xz"

prepare() {
	default_prepare
	autoreconf -i
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--with-sysroot=$CBUILDROOT \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man \
		--localstatedir=/var/state/gmp \
		--enable-cxx \
		--with-pic
	make
}

package() {
	make -j1 DESTDIR="${pkgdir}" install
}

check() {
	[ "$CBUILD" = "$CHOST" ] && make check
}

libgmpxx() {
	pkgdesc="C++ support for gmp"
	mkdir -p "$subpkgdir"/usr/lib/
	mv "$pkgdir"/usr/lib/libgmpxx.so.* "$subpkgdir"/usr/lib/
}

sha512sums="c99be0950a1d05a0297d65641dd35b75b74466f7bf03c9e8a99895a3b2f9a0856cd17887738fa51cf7499781b65c049769271cbcb77d057d2e9f1ec52e07dd84  gmp-6.2.1.tar.xz"