summaryrefslogtreecommitdiff
path: root/core/gmp/MAKEPKG
blob: d52ab8a103c44d0dc96dfb1843dbc10e9f4b9d08 (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
40
41
42
43
#!/bin/mkpkg
# description: GNU multiple precision arithmetic library
# url: https://gmplib.org

name=gmp
version=6.3.0
release=2
source=(https://ftp.gnu.org/gnu/gmp/gmp-$version.tar.xz)
depends=()
makedeps=(m4 findutils)

sha256sums=(
    "a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898"
)

build() {
    cd gmp-$version

    # C only.  --enable-cxx builds libgmpxx, which links libc++/libc++abi/
    # libunwind and makes the whole llvm toolchain a runtime dependency of
    # anything that needs gmp -- nftables included.  Nothing in the tree
    # uses the C++ interface.
    ./configure \
        --prefix=/ \
        --libdir=/lib \
        --includedir=/include \
        --mandir=/usr/share/man \
        --disable-static \
        --disable-cxx

    make
    make DESTDIR=$PKG install

    # Remove info/docs
    rm -rf $PKG/share
}

signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh