summaryrefslogtreecommitdiff
path: root/repo/argp-standalone/argp-standalone.xibuild
blob: a5179f18a6962cb3ea5a7afb84bcad2e0a6b96a4 (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
#!/bin/sh

MAKEDEPS=""
DEPS="musl"

PKG_VER=1.3
SOURCE=https://www.lysator.liu.se/~nisse/misc/argp-standalone-$PKG_VER.tar.gz

DESC="Standalone implementation for the argp interface"

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

package () {
    install -d $PKG_DEST/usr/lib
    install -d $PKG_DEST/usr/include
    cp libargp.a $PKG_DEST/usr/lib/
    cp argp.h    $PKG_DEST/usr/include/
}