Files
binary-repo/dev/libs/gmp/ympbuild
T
2023-01-30 23:57:56 +03:00

34 lines
643 B
Bash

#!/usr/bin/env bash
name='gmp'
release='1'
version='6.2.1'
url='https://gmplib.org'
description='Library for arbitrary-precision arithmetic on different type of numbers'
email='kurth4cker@tutanota.com'
maintainer='kurth4cker'
license=('GPLv2' 'LGPLv3')
source=("https://gmplib.org/download/gmp/gmp-${version}.tar.xz")
md5sums=('0b82665c4a92fd2ade7440c13fcaa42b')
arch=('x86_64')
group=(dev.libs)
uses=(cxx)
cxx_depends=(gcc)
cd $name-$version
setup(){
./configure --prefix=/usr \
--libdir=/usr/lib64 \
$(use_opt cxx --enable-cxx --disable-cxx) \
--enable-fat
}
build(){
make -j`nproc`
}
package(){
make install -j`nproc`
}