summaryrefslogtreecommitdiff
path: root/libs/libffi/MAKEPKG
blob: 33c08d58b1a121f123c80a6ff257e27ae993a2ab (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
#!/bin/mkpkg
# description: Foreign function interface library
# url: https://sourceware.org/libffi

name=libffi
version=3.8.0
release=1
source=(https://github.com/libffi/libffi/releases/download/v$version/libffi-$version.tar.gz)
depends=()
makedeps=()

sha256sums=(
    "7da3e2d9a171eb0a038f592ecad3ff2bb2550f3496d87b3b29ad0cf4430c0db4"
)

build() {
    cd libffi-$version

    ./configure \
        --prefix=/usr \
        --disable-static \
        --disable-exec-static-tramp

    make
    make DESTDIR=$PKG install

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

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

# vim: filetype=sh