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

MAKEDEPS=""
DEPS="musl"

PKG_VER=1.1
SOURCE=https://github.com/pullmoll/musl-obstack/archive/v$PKG_VER.tar.gz

DESC="Obstack functions found in GNU libiberty"

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
}