summaryrefslogtreecommitdiff
path: root/repo/system/musl-fts.xibuild
blob: daf4841cd376459cd17cc5556ff8e2de1d66ad6f (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
#!/bin/sh

MAKEDEPS=""
DEPS="musl"

PKG_VER=1.2.7
SOURCE=https://github.com/pullmoll/musl-fts/archive/v$PKG_DEST.tar.gz

DESC="Libraries implementing the set of fts functions missing in musl libc"

prepare () {
    sed -i "/pkgconfig_DATA/i pkgconfigdir=/usr/lib/pkgconfig" Makefile.am
    ./bootstrap.sh
}

build () {
    CFLAGS=" -fPIC" \
    ./configure \
        --prefix=/usr \
        --sysconfdir=/etc \
        --localstatedir=/var
    make
}

package () {
    make DESTDIR=$PKG_DEST install
}